/* Portal Masa — UX pembaca v1 (11 Nov 2026)
   Scoped, additive stylesheet. Does not replace existing typography/theme. */
:root { --pm-reader-accent: #2c5948; --pm-reader-border: #d9dfd7; }
/* Native reading progress: present only when an article is rendered. */
.pm-read-progress { position:fixed; inset:0 auto auto 0; height:3px; width:0; z-index:90; background:var(--pm-reader-accent); pointer-events:none; transform:translateZ(0); }
/* Reading time injected beside existing author/date, without changing metadata. */
.article .pm-read-time { white-space:nowrap; color:#49665a; font-weight:650; }
/* Mobile reading comfort: editorial look stays intact. */
.article .article-body { max-width:68ch; text-wrap:pretty; }
.article .article-body p { overflow-wrap:break-word; }
.article .article-body a { text-underline-offset:3px; text-decoration-thickness:1px; }
.article .article-body a:hover { text-decoration-thickness:2px; }
.article .article-body a:focus-visible,
.article .pm-reader-journey a:focus-visible,
.article .pm-reader-toc a:focus-visible,
.article .related a:focus-visible { outline:3px solid #b47e31; outline-offset:3px; border-radius:2px; }
.article .article-body img,.article .article-gallery img { max-width:100%; height:auto; }
.article .article-hero figcaption,.article .article-body figcaption { font-size:clamp(12px,1.3vw,14px); line-height:1.65; }
.article .related .simple-card { padding:20px; min-height:140px; border-radius:7px; }
.article .related .simple-card strong { line-height:1.28; }
/* A compact TOC on long articles, automatically generated from existing H2s. */
.pm-reader-toc { max-width:690px; margin:0 auto 29px; border:1px solid var(--pm-reader-border); border-radius:7px; background:#fbfaf5; padding:17px 19px; }
.pm-reader-toc summary { cursor:pointer; color:#274c3d; font:700 14px/1.45 var(--ui,system-ui,sans-serif); }
.pm-reader-toc ol { margin:13px 0 0; padding-left:1.4rem; font:14px/1.55 var(--ui,system-ui,sans-serif); }
.pm-reader-toc li { margin:.5rem 0; padding-left:.15rem; }
.pm-reader-toc a { color:#365b4b; text-decoration:none; }
.pm-reader-toc a:hover { text-decoration:underline; text-underline-offset:3px; }
.article .article-body h2[id] { scroll-margin-top:86px; }
/* End-of-article rubric navigation complements, rather than duplicates, existing related stories. */
.pm-reader-journey { margin:40px auto 0; padding-top:26px; border-top:1px solid var(--pm-reader-border); }
.pm-reader-journey h2 { color:#273d31; font:700 clamp(23px,2.7vw,30px)/1.2 var(--display,Georgia,serif); margin:0 0 10px; }
.pm-reader-journey p { color:#52635a; font:14px/1.6 var(--ui,system-ui,sans-serif); margin:0 0 17px; }
.pm-reader-journey .pm-journey-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.pm-reader-journey a { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:49px; padding:12px 15px; border:1px solid var(--pm-reader-border); border-radius:6px; background:#fafbf7; color:#25513d; text-decoration:none; font:700 14px/1.35 var(--ui,system-ui,sans-serif); }
.pm-reader-journey a:hover { border-color:#759783; background:#eff5ef; }
.pm-reader-journey a>span { font-size:18px; color:#506b57; }
@media(max-width:620px) {
  .article .article-wrap { width:calc(100% - 36px); padding-top:26px; padding-bottom:56px; }
  .article .article-header h1 { font-size:clamp(32px,8.6vw,41px); line-height:1.14; letter-spacing:-.035em; }
  .article .article-body { font-size:18px; line-height:1.79; }
  .article .article-body>p:first-of-type { font-size:19px; line-height:1.72; }
  .article .article-body h2 { font-size:clamp(24px,6.4vw,29px); line-height:1.26; }
  .article .article-body h3 { font-size:22px; line-height:1.3; }
  .article .article-hero figcaption { padding:12px 13px; }
  .article .related .simple-grid { grid-template-columns:1fr; }
  .article .related .simple-card { min-height:0; }
  .pm-reader-toc { padding:15px 16px; margin-bottom:24px; }
  .pm-reader-journey .pm-journey-grid { grid-template-columns:1fr 1fr; }
  .pm-reader-journey a { padding:11px; font-size:13px; }
}
@media(max-width:355px){ .pm-reader-journey .pm-journey-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .pm-read-progress { transition:none; } }
@media print { .pm-read-progress,.pm-reader-toc,.pm-reader-journey { display:none!important; } }
