/* Sistem Informasi Produk Hukum Desa Rempanga — isolated from Sahifa styles */
.rph-page,.rph-widget{font-family:inherit;color:#233d30;box-sizing:border-box}.rph-page *,.rph-widget *{box-sizing:border-box}.rph-page a,.rph-widget a{text-decoration:none}.rph-page{width:100%;max-width:1200px;margin:25px auto 45px;padding:0 18px;clear:both}.rph-wrap{background:#fff;padding:24px 0}.rph-site-hero{background:linear-gradient(120deg,#10402a 0%,#216c46 100%);border-radius:16px;padding:31px 35px;color:#fff;box-shadow:0 7px 24px rgba(17,70,40,.09)}.rph-hero-identity{display:flex;align-items:center;gap:22px}.rph-logo{width:86px;height:86px;object-fit:contain;background:#fff;border-radius:14px;padding:8px}.rph-hero-mark{display:grid;place-items:center;width:80px;height:80px;background:#ffffff24;border-radius:12px;font-size:44px}.rph-hero-overline{text-transform:uppercase;letter-spacing:1.2px;font-weight:700;font-size:12px;color:#d8f1df}.rph-site-hero h1{font-size:30px;line-height:1.3;color:#fff;margin:6px 0}.rph-site-hero p{margin:0;color:#e2f3e6;font-size:14px}.rph-intro{color:#5c7265;font-size:15px;line-height:1.85;max-width:850px;margin:0 0 24px}.rph-filters{display:grid;grid-template-columns:2fr 1.7fr 1fr 1.2fr auto auto;gap:11px;align-items:end;background:#f3f8f4;border:1px solid #dfebe2;border-radius:12px;padding:18px;margin:0 0 28px}.rph-filter-group label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;color:#2b563b}.rph-filter-group input,.rph-filter-group select{display:block;width:100%;height:42px;max-width:100%;border:1px solid #ccdcd0;background:#fff;border-radius:7px;padding:8px;color:#243e2d;font-size:13px}.rph-btn{display:inline-flex;justify-content:center;align-items:center;padding:11px 15px;border:0;border-radius:7px;font-size:13px;font-weight:700;min-height:42px;cursor:pointer}.rph-btn.rph-primary,.rph-widget-all{background:#17643f;color:#fff!important}.rph-btn.rph-secondary{background:#e7f3e9;color:#17643f!important}.rph-btn:hover,.rph-widget-all:hover{filter:brightness(1.08)}.rph-reset{font-size:12px;color:#356948!important;padding:12px 0;text-align:center}.rph-directory-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 17px}.rph-directory-heading h2{font-size:22px;color:#194b31;margin:0}.rph-directory-heading span{color:#728376;font-size:13px}.rph-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.rph-card{border:1px solid #e1eae2;background:#fff;border-radius:12px;padding:19px;display:flex;flex-direction:column;min-width:0;min-height:240px;box-shadow:0 2px 7px rgba(15,55,29,.025);transition:box-shadow .2s,border-color .2s}.rph-card:hover{border-color:#8bb79b;box-shadow:0 6px 20px rgba(15,55,29,.085)}.rph-card-upper{display:flex;align-items:center;gap:10px;margin-bottom:12px}.rph-document-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:8px;background:#e6f2e9;color:#165e3e;font-family:serif;font-size:26px}.rph-type{color:#147346;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.3px}.rph-card h3{font-size:16px!important;line-height:1.55!important;margin:0 0 10px!important;font-weight:700!important}.rph-card h3 a{color:#1b3d2b!important}.rph-card h3 a:hover{color:#168e53!important}.rph-card-desc{margin:0 0 16px!important;font-size:13px;color:#627569;line-height:1.65}.rph-card-bottom{margin-top:auto}.rph-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:13px;font-size:11px;color:#6e7d73}.rph-badge{display:inline-flex;align-items:center;background:#f1efe4;color:#8b6b29;border-radius:30px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}.rph-badge-ok{background:#e3f3e8;color:#17653e}.rph-card-link{display:block;text-align:center;background:#e7f2e9;color:#165e3d!important;border-radius:7px;padding:10px;font-size:12px;font-weight:700}.rph-card-link:hover{background:#17643f;color:#fff!important}.rph-empty{grid-column:1/-1;text-align:center;padding:45px 15px;background:#f7faf7;border:1px dashed #dbe6dd;border-radius:10px;color:#607568}.rph-pagination ul{list-style:none;display:flex;gap:7px;justify-content:center;margin:25px 0;padding:0}.rph-pagination a,.rph-pagination span{border:1px solid #d6e7db;padding:9px 12px;border-radius:6px;display:inline-block;color:#17643f}.rph-pagination .current{background:#17643f;color:#fff}.rph-breadcrumb{margin-bottom:19px;font-size:13px}.rph-breadcrumb a{color:#17653e!important}.rph-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:start;gap:24px}.rph-detail-main{background:#fff;border:1px solid #e1ebe3;border-radius:12px;padding:25px;min-width:0}.rph-detail-heading{border-bottom:1px solid #e7ede8;padding-bottom:18px}.rph-detail-heading .rph-type{margin-right:10px}.rph-detail-heading h2{font-size:25px!important;line-height:1.45!important;color:#173d2a;margin:12px 0 0!important}.rph-detail-main h2,.rph-relations h2{font-size:18px!important;color:#194b31!important;margin:0 0 16px!important}.rph-summary{padding:17px;background:#f3f8f4;border-radius:9px;margin:22px 0}.rph-summary h3{margin:0 0 9px!important;color:#21543a;font-size:15px!important}.rph-summary p{margin:0;line-height:1.75;font-size:14px}.rph-metadata,.rph-documents,.rph-detail-content{margin-top:25px}.rph-metadata dl{margin:0;border:1px solid #e5eee7;border-radius:9px;overflow:hidden}.rph-metadata dl>div{display:grid;grid-template-columns:38% 62%;border-bottom:1px solid #e5eee7}.rph-metadata dl>div:last-child{border-bottom:0}.rph-metadata dt,.rph-metadata dd{padding:12px 14px;margin:0;line-height:1.5;font-size:13px}.rph-metadata dt{background:#f4f8f5;color:#65796a;font-weight:600}.rph-metadata dd{color:#263e2d}.rph-detail-content{line-height:1.8;font-size:14px}.rph-detail-aside{border:1px solid #e0ebe2;border-radius:12px;padding:22px;background:#f9fcfa}.rph-relations h2{border-bottom:2px solid #d9e9dc;padding-bottom:12px}.rph-relation{padding:12px 0;border-bottom:1px solid #e2ebe4}.rph-relation:last-child{border-bottom:0}.rph-relation h3{font-size:13px!important;margin:0 0 6px!important;color:#27573a}.rph-relation p,.rph-relation li{margin:0;color:#667b6b;font-size:12px;line-height:1.65}.rph-relation ul{margin:0 0 0 16px;padding:0}.rph-relation li{margin-bottom:7px;overflow-wrap:anywhere}.rph-relation a{color:#17643f!important}.rph-side-all{display:block;background:#17643f;color:#fff!important;border-radius:8px;padding:12px;text-align:center;font-size:12px;font-weight:700;margin-top:20px}.rph-document-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.rph-pdf-frame{height:650px;border:1px solid #d9e6dc;border-radius:9px;overflow:hidden;background:#f1f3f1}.rph-pdf-frame iframe{width:100%;height:100%;border:0}.rph-help{color:#6f806f;font-size:12px;margin:9px 0}.rph-attachments{list-style:none;padding:0;margin:10px 0}.rph-attachments li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #e4ede6;font-size:13px}.rph-attachment-links{display:flex;gap:10px}.rph-attachment-links a{color:#17643f!important;font-weight:700}.rph-widget{width:100%;clear:both;margin:15px 0 25px}.rph-widget-top{background:linear-gradient(120deg,#164b33,#23744a);border-radius:12px 12px 0 0;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 20px;color:#fff}.rph-widget-top h2{color:#fff!important;font-size:19px!important;margin:0 0 2px!important;line-height:1.4!important}.rph-widget-top p{color:#e4f4e7;font-size:12px;margin:0!important}.rph-widget-top a{color:#fff!important;font-weight:700;font-size:12px;white-space:nowrap}.rph-widget-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px;padding:14px 0}.rph-card-small{min-height:240px;padding:13px}.rph-card-small h3{font-size:13px!important}.rph-card-small .rph-card-desc{font-size:11px}.rph-card-small .rph-document-symbol{width:34px;height:34px;flex-basis:34px;font-size:23px}.rph-card-small .rph-type{font-size:10px}.rph-card-small .rph-card-meta{font-size:10px;gap:5px}.rph-card-small .rph-badge{font-size:10px}.rph-card-small .rph-card-link{font-size:11px}.rph-widget-all{display:block;border-radius:8px;text-align:center;font-weight:700;padding:13px;font-size:13px}.rph-widget a:focus,.rph-page a:focus{outline:2px solid #5cab77;outline-offset:2px}
@media(max-width:1100px){.rph-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.rph-search{grid-column:span 2}.rph-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.rph-detail-grid{grid-template-columns:1fr}.rph-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rph-page{padding:0 12px}.rph-pdf-frame{height:520px}}
@media(max-width:600px){.rph-site-hero{padding:23px 17px}.rph-hero-identity{gap:12px}.rph-logo{width:60px;height:60px}.rph-hero-mark{width:60px;height:60px;font-size:32px}.rph-site-hero h1{font-size:21px}.rph-hero-overline{font-size:10px}.rph-site-hero p{font-size:11px}.rph-wrap{padding-top:20px}.rph-filters{grid-template-columns:1fr}.rph-search{grid-column:auto}.rph-directory-grid{grid-template-columns:1fr}.rph-directory-heading h2{font-size:19px}.rph-widget-top{flex-wrap:wrap}.rph-widget-top h2{font-size:17px!important}.rph-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.rph-card-small{padding:10px}.rph-card-small h3{font-size:12px!important}.rph-card-small .rph-card-desc{display:none}.rph-card-small .rph-card-meta{margin-top:10px}.rph-card-small .rph-card-upper{gap:6px}.rph-card-small .rph-document-symbol{flex-basis:29px;width:29px;height:29px}.rph-detail-main{padding:15px}.rph-detail-heading h2{font-size:20px!important}.rph-metadata dl>div{grid-template-columns:42% 58%}.rph-metadata dt,.rph-metadata dd{font-size:12px;padding:10px}.rph-pdf-frame{height:420px}.rph-attachments li{align-items:flex-start;flex-direction:column}}
@media(max-width:370px){.rph-widget-grid{grid-template-columns:1fr!important}}

.rph-widget-categories{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 13px}.rph-widget-categories span{font-size:12px;color:#54725d;font-weight:700}.rph-widget-categories a{display:inline-block;font-size:11px;font-weight:700;color:#17643f!important;background:#eaf4ed;border:1px solid #d7e8dc;border-radius:18px;padding:6px 10px}.rph-widget-categories a:hover{background:#17643f;color:#fff!important}

/* v1.0.3: hierarki nomor peraturan dan judul materi, arsip/detail/widget */
.rph-card .rph-card-law{font-size:12px!important;line-height:1.5!important;font-weight:500!important;color:#65796b!important;margin:0 0 5px!important;overflow-wrap:anywhere}
.rph-card .rph-card-law a{color:#65796b!important}
.rph-card .rph-card-law a:hover{color:#17643f!important}
.rph-card h3.rph-card-subject{font-size:18px!important;line-height:1.4!important;font-weight:750!important;margin:0 0 14px!important;overflow-wrap:anywhere}
.rph-card h3.rph-card-subject a{color:#153e2a!important}
.rph-card-small .rph-card-law{font-size:10px!important;margin-bottom:5px!important}
.rph-card-small h3.rph-card-subject{font-size:14px!important;line-height:1.4!important;margin-bottom:12px!important}
.rph-detail-heading .rph-detail-law{font-size:14px!important;line-height:1.55!important;color:#647b6c!important;margin-top:15px!important;font-weight:500!important;overflow-wrap:anywhere}
.rph-detail-heading h2.rph-detail-subject{font-size:27px!important;line-height:1.35!important;color:#153d29!important;font-weight:750!important;margin:6px 0 0!important;overflow-wrap:anywhere}
@media(max-width:600px){.rph-card h3.rph-card-subject{font-size:16px!important}.rph-card-small h3.rph-card-subject{font-size:13px!important}.rph-card-small .rph-card-law{font-size:10px!important}.rph-detail-heading h2.rph-detail-subject{font-size:22px!important}.rph-detail-heading .rph-detail-law{font-size:12px!important}}
