/* Perangkat daerah (SOTK) directory and detail. Uses portal tokens so the generated dark theme applies. */
.opd-filter { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem 1.25rem; align-items:end; margin-top:1.75rem; background:var(--surface); color:var(--text); border:1px solid var(--border); padding:1.1rem; border-radius:8px; max-width:980px; }
.opd-search label { display:block; font-weight:700; font-size:.875rem; margin-bottom:.4rem; color:var(--text); }
.opd-search input { width:100%; height:46px; padding:.5rem .8rem; border:1px solid var(--muted); background:var(--surface); color:var(--text); border-radius:6px; font:inherit; }
.opd-chips { grid-column:1 / -1; grid-row:2; display:flex; flex-wrap:wrap; gap:.4rem; }
.opd-chip input { position:absolute; opacity:0; pointer-events:none; }
.opd-chip span { display:inline-block; padding:.55rem .85rem; border:1px solid var(--border); border-radius:999px; background:var(--surface-subtle); color:var(--text); font-size:.875rem; font-weight:600; cursor:pointer; }
.opd-chip input:checked + span { background:var(--primary); border-color:var(--primary); color:#fff; }
.opd-chip input:focus-visible + span { outline:3px solid var(--accent-gold); outline-offset:2px; }
.opd-count { color:var(--muted); margin:0 0 1.5rem; }
.opd-group { margin-bottom:2.75rem; }
.opd-group h2 { display:flex; align-items:center; gap:.6rem; margin-bottom:1.1rem; }
.opd-group-n { font-size:.8rem; font-weight:700; background:var(--surface-subtle); color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:.15rem .6rem; }
.opd-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:1rem; }
.opd-grid-tight { grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
.opd-card { position:relative; display:flex; flex-direction:column; gap:.7rem; padding:1.15rem 1.2rem; background:var(--surface); border:1px solid var(--border); border-top:3px solid var(--accent); border-radius:6px; transition:border-color .15s, box-shadow .15s; }
.opd-card:hover, .opd-card:focus-within { border-color:var(--primary); box-shadow:0 4px 16px rgba(15,23,42,.1); }
.opd-card .eyebrow { margin:0; font-size:.75rem; }
.opd-card h3 { margin:0; font-size:1.1rem; line-height:1.3; }
.opd-card-link { color:var(--text); text-decoration:none; }
.opd-card-link::after { content:""; position:absolute; inset:0; }
.opd-card-link:hover { color:var(--primary); text-decoration:underline; }
.opd-head { display:flex; align-items:center; gap:.7rem; }
.opd-avatar { flex:none; width:56px; height:56px; border-radius:50%; overflow:hidden; background:var(--surface-subtle); border:1px solid var(--border); display:grid; place-items:center; }
.opd-avatar img { width:100%; height:100%; object-fit:cover; object-position:50% 15%; display:block; }
.opd-avatar-ph { font-weight:800; color:var(--muted); }
.opd-head-text { display:grid; min-width:0; }
.opd-head-role { font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.opd-head-name { font-weight:650; color:var(--text); overflow-wrap:anywhere; position:relative; z-index:1; }
.opd-head-empty .opd-head-name { font-weight:400; color:var(--muted); font-style:italic; }
.opd-head-empty::before { content:""; flex:none; width:56px; height:56px; border-radius:50%; border:1px dashed var(--border); background:var(--surface-subtle); }
.opd-head-lg { flex-direction:column; align-items:stretch; gap:.9rem; }
.opd-head-lg .opd-avatar { width:100%; max-width:280px; height:auto; aspect-ratio:4/5; border-radius:10px; }
.opd-head-lg .opd-avatar-ph { font-size:4rem; }
.opd-head-lg.opd-head-empty::before { width:100%; max-width:280px; height:auto; aspect-ratio:4/5; border-radius:10px; }
.opd-head-lg .opd-head-role { font-size:.8rem; }
.opd-head-lg .opd-head-name { font-size:1.1rem; }
.opd-kids { font-size:.9rem; position:relative; z-index:1; }
.opd-kids summary { cursor:pointer; color:var(--primary); font-weight:600; }
.opd-kids ul { margin:.5rem 0 0; padding-left:1.1rem; display:grid; gap:.3rem; }
.opd-site { position:relative; z-index:1; margin-top:auto; font-size:.9rem; font-weight:600; align-self:flex-start; }
.opd-muted { color:var(--muted); }
.opd-archive { margin-top:1rem; border-top:1px solid var(--border); padding-top:1.25rem; }
.opd-archive summary { cursor:pointer; font-weight:700; }
.opd-notice { background:#fff6dd; color:#3b2f06; border:1px solid var(--accent-gold); border-left-width:6px; padding:1rem 1.25rem; border-radius:6px; margin-bottom:1.75rem; }
.opd-notice a { color:inherit; font-weight:700; }
.opd-title { margin-bottom:2rem; } .opd-title h1 { margin-bottom:1rem; }
.opd-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:3rem; align-items:start; }
.opd-main > section { margin-bottom:2.5rem; }
.opd-panel { background:var(--surface-subtle); border:1px solid var(--border); border-radius:8px; padding:1.25rem; margin-bottom:1.25rem; }
.opd-panel h2 { font-size:1rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 1rem; }
.opd-visit { display:block; text-align:center; margin-bottom:1rem; }
.opd-contact { margin:0; display:grid; gap:.2rem; }
.opd-contact dt { font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-top:.7rem; }
.opd-contact dd { margin:0; overflow-wrap:anywhere; }
.opd-timeline { list-style:none; margin:0; padding:0 0 0 1.25rem; border-left:2px solid var(--border); display:grid; gap:.9rem; }
.opd-timeline li { position:relative; }
.opd-timeline li::before { content:""; position:absolute; left:calc(-1.25rem - 6px); top:.5em; width:10px; height:10px; border-radius:50%; background:var(--accent); }
.opd-back { margin-top:2rem; }
@media (max-width:900px) { .opd-layout { grid-template-columns:1fr; gap:1.5rem; } .opd-side { order:-1; } }
@media (max-width:700px) { .opd-filter { grid-template-columns:1fr; } .opd-filter .btn { width:100%; } }
@media (prefers-reduced-motion:reduce) { .opd-card { transition:none; } }
.opd-head-since { font-size:.85rem; color:var(--muted); }
