/* Halaman dalam: keputusan, akta, semua akta, tentang. Skrin kerja: rata, tenang, warna hanya pada data dan satu tindakan. */
:root { --read: var(--bg); --read-ink: var(--ink); --read-muted: var(--muted); }

/* ------------------------------------------------------------ keputusan */
.serp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 28px 0 96px; align-items: start; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg a { padding: 6px 14px; text-decoration: none; background: var(--surface); font-size: var(--step-small); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.seg a:hover, .seg a[aria-current] { background: var(--ink); color: var(--bg); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); text-decoration: none; }
.switch__t { position: relative; width: 42px; height: 24px; background: var(--surface); transition: background-color var(--t-ui) ease; }
.switch__t::after { content: ''; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.switch[aria-checked="true"] .switch__t { background: var(--ink); }
.switch[aria-checked="true"] .switch__t::after { transform: translateX(18px); background: var(--bg); }
.serp__title { margin-top: 22px; font-family: var(--display); font-optical-sizing: auto; font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.serp__title q { quotes: '“' '”'; }
.serp__count { margin: 6px 0 4px; font-size: var(--step-small); color: var(--muted); }
.rail { position: sticky; top: 20px; display: grid; gap: 36px; }
.rail h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.railcard { display: block; padding: 10px 12px; margin-inline: -12px; text-decoration: none; transition: background-color var(--t-hover) ease; }
.railcard:hover { background: var(--surface); }
.railcard b { display: block; font-weight: 600; }
.railcard small { display: block; font-size: var(--step-small); color: var(--muted); }
.railq { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px 0; text-decoration: none; font-size: 1rem; line-height: 1.3; transition: color var(--t-hover) ease; }
.railq:hover { color: var(--accent); }
.railq .ic { margin-top: 3px; color: var(--muted); }

/* gambaran keseluruhan: helaian warta */
.ov { position: relative; margin: 18px 0 30px; padding: 26px 0 22px; background: var(--surface); color: var(--ink); }
.ov > :not(.ov__head, .ov__srcs, .ov__know) { margin-inline: 28px; }
.ov__head { display: flex; align-items: center; gap: 10px; margin-inline: 28px; }
.ov__head h2 { font-size: 1.125rem; font-weight: 600; }
.ov__tag { margin-left: auto; font-size: var(--step-small); color: var(--muted); }
.ov__lead { margin-top: 14px; font-size: 1.25rem; line-height: 1.5; }
.ov__headline { margin-top: 16px; }
.ov__hh { font-weight: 600; font-size: 1.25rem; }
.ov__hh a { text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.ov__hh a:hover { text-decoration-color: currentColor; }
.ov__cite { font-size: .75em; color: var(--accent); margin-left: 2px; }
.ov__quote { margin-top: 8px; font-size: clamp(1.1875rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -.005em; }
.ov__orig { margin-top: 10px; font-size: var(--step-small); }
.ov__orig summary, .ov__more summary { cursor: pointer; color: var(--accent); }
.ov__orig p { margin-top: 6px; color: var(--muted); }
.ov__list { margin-top: 18px; display: grid; gap: 14px; }
.ov__list li { padding-left: 18px; position: relative; }
.ov__list li::before { content: '§'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }
.ov__bh { font-weight: 600; font-size: 1rem; }
.ov__bh a { text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.ov__bh a:hover { text-decoration-color: currentColor; }
.ov__act { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.ov__list p { font-size: 1.125rem; line-height: 1.45; }
.ov__more { margin-top: 12px; }
.ov__know { margin: 22px 0 0; padding: 14px 28px; background: var(--bg); font-size: 1rem; }
.ov__know h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.ov__know li { margin-top: 6px; line-height: 1.4; }
.ov__srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 18px 28px 0; font-size: var(--step-small); }
.ov__srcs > span { color: var(--muted); margin-right: 4px; }
.ov__src { display: inline-flex; gap: 6px; padding: 3px 10px; background: var(--bg); text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.ov__src:hover { background: var(--ink); color: var(--bg); }
.ov__disc { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.ov__purpose { margin-top: 12px; font-size: 1.25rem; }
.ov__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin-top: 16px; }
.ov__facts dt { font-size: var(--step-small); color: var(--muted); }
.ov__facts dd { margin: 0; font-weight: 600; }
.ov__keys { margin-top: 18px; } .ov__keys h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.ov .chip { background: var(--bg); } .ov .chip:hover { background: var(--ink); color: var(--bg); }
.ov__act-links { margin-top: 18px; }

.actcard { display: block; margin: 8px 0 18px; padding: 16px 18px; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.actcard:hover { background: var(--tint); transform: translateX(4px); }
.actcard__t { font-weight: 600; font-size: 1.25rem; margin-right: 6px; }
.actcard__p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.result { position: relative; padding: 20px 0 20px 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--step-small); color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.crumbs a:hover { text-decoration-color: currentColor; }
.result__t { margin-top: 4px; font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; }
.result__t a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--accent); text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.result__t a:hover { text-decoration-color: currentColor; }
.snippet { margin-top: 6px; font-size: 1.125rem; line-height: 1.5; max-width: 66ch; }
.amends { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.more { margin-top: 20px; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .result, .actcard, .ov { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .ov__quote, .ov__lead, .ov__list li { animation: sn-wipe 800ms var(--ease-expo) both; animation-delay: 220ms; }
  .ov__list li:nth-child(2) { animation-delay: 380ms; } .ov__list li:nth-child(3) { animation-delay: 520ms; } .ov__list li:nth-child(n+4) { animation-delay: 640ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ halaman akta */
.act { padding-bottom: 96px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; font-size: var(--step-small); color: var(--muted); }
.crumb a { color: var(--ink); }
.act__hero { padding: 12px 0 24px; max-width: 920px; }
.act__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.act__title { margin-top: 12px; font-family: var(--display); font-optical-sizing: auto; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.035em; }
.act__sub { margin-top: 10px; font-size: var(--step-body); color: var(--muted); }
.act__purpose { margin-top: 16px; max-width: 62ch; font-size: 1.25rem; line-height: 1.5; }
.act__rel { margin-top: 12px; font-size: 1rem; } .act__rel a { margin-right: 12px; }
.act__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.metapill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--surface); text-decoration: none; font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
a.metapill:hover { background: var(--ink); color: var(--bg); }
.nodoc { max-width: 640px; padding: 40px 0; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 24px; font-size: var(--step-small); }
.act__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 8px; font-size: 1rem; }
.toc__find { width: 100%; padding: 10px 12px; border: 0; background: var(--surface); color: var(--ink); font-size: 1rem; }
.toc__count { margin: 8px 0 0; font-size: var(--step-small); color: var(--muted); }
.toc ol { margin-top: 12px; display: grid; }
.toc__part { margin: 14px 0 4px; font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.toc li a { display: grid; grid-template-columns: 3rem 1fr; gap: 6px; padding: 5px 8px; text-decoration: none; line-height: 1.3; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.toc li a i { font-style: normal; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.toc li a:hover { background: var(--surface); }
.toc li a.on { background: var(--ink); color: var(--bg); } .toc li a.on i { color: var(--tint); }
.toc li.dim a { color: var(--muted); } .toc li.hit a { background: var(--tint); color: var(--ink); }
.act__body { background: var(--read); color: var(--read-ink); padding: 0; }
.sec__part { margin: 36px 0 4px; font-size: 1.125rem; font-weight: 600; color: var(--accent); }
.sec__part:first-child { margin-top: 0; }
.sec { position: relative; padding: 24px 0 8px; scroll-margin-top: 20px; }
.sec + .sec { margin-top: 8px; }
.sec__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 1.375rem; font-weight: 600; line-height: 1.22; letter-spacing: -.01em; padding-right: 110px; }
.sec__n { font-size: 1rem; color: var(--accent); white-space: nowrap; }
.sec__copy { position: absolute; right: 0; top: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: transparent; border: 0; color: var(--read-muted); font-size: var(--step-small); opacity: 0; transition: opacity var(--t-hover) ease, color var(--t-hover) ease; }
.sec:hover .sec__copy, .sec__copy:focus-visible { opacity: 1; } .sec__copy:hover { color: var(--accent); }
@media (hover: none) { .sec__copy { opacity: 1; } }
.sec__body p { margin-top: .75em; font-size: 1.125rem; line-height: 1.58; max-width: 72ch; }
.sec__body .sub { margin-left: 1.6em; } .sec__body .ill { margin-left: 1.6em; font-style: italic; }
.sec__notes { margin-top: 14px; padding: 12px 16px; background: var(--surface); font-size: 1rem; color: var(--read-muted); }
.sec__notes p { font-size: 1rem; margin-top: .4em; max-width: none; }
.sec--flash { animation: flash 2.2s var(--ease-out); }
@keyframes flash { 0%, 35% { background: var(--tint); } 100% { background: transparent; } }
.act__body mark { background: var(--tint); }

/* ------------------------------------------------------------ semua akta & tentang */
.page { padding: 40px 0 96px; max-width: 1200px; }
.page h1, .prose h1 { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.035em; }
.page__sub { margin-top: 14px; max-width: 56ch; font-size: var(--step-body); color: var(--muted); line-height: 1.5; }
.filterbar { margin: 28px 0 8px; display: grid; gap: 14px; }
.filterbar .sb__field { min-height: 52px; }
.filterbar__row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.group__t { display: flex; align-items: baseline; gap: 10px; margin: 44px 0 6px; font-family: var(--display); font-optical-sizing: auto; font-size: var(--fs-q); font-weight: 700; letter-spacing: -.035em; }
.group__t small { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 14px 12px; margin-inline: -12px; text-decoration: none; transition: background-color var(--t-hover) ease, padding-left var(--t-ui) var(--ease-out); }
.row:hover { background: var(--surface); padding-left: 20px; }
.row__t { font-weight: 600; font-size: 1.25rem; }
.row__p { grid-column: 1; font-size: 1rem; color: var(--muted); line-height: 1.4; }
.row__b { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-items: start; justify-content: flex-end; flex-wrap: wrap; }
.prose { max-width: 740px; padding: 40px 0 96px; }
.prose h2 { margin-top: 44px; font-family: var(--display); font-optical-sizing: auto; font-size: var(--fs-q); font-weight: 700; letter-spacing: -.035em; }
.prose p, .prose li { margin-top: .8em; line-height: 1.58; }
.prose ul { padding-left: 1.2em; list-style: disc; } .prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.about-nws { margin-top: 22px; }

@media (max-width: 1000px) {
  .serp { grid-template-columns: 1fr; } .rail { position: static; }
  .act__grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: 260px; background: var(--surface); padding: 10px; }
}
@media (max-width: 700px) {
  .sec__h, .result__t { font-size: 1.0625rem; }
  .ov > :not(.ov__head, .ov__srcs, .ov__know), .ov__head, .ov__srcs { margin-inline: 18px; } .ov__know { padding-inline: 18px; }
  .sec__h { padding-right: 0; } .sec__copy { position: static; opacity: 1; padding-left: 0; }
  .row { grid-template-columns: 1fr; } .row__b { grid-row: auto; grid-column: 1; justify-content: flex-start; }
}
