/* Halaman publik Templates (lib/template-pages.js). Melengkapi journal-pages.css. */
.tp-quick{margin-top:1.1rem}
.tp-quick a{background:transparent;border-color:var(--jh-night-line);color:var(--jh-night-ink)}
.tp-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;padding-top:28px;padding-bottom:64px;align-items:start}
.tp-side{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;padding-right:4px}
.tp-drawer>summary{display:none;cursor:pointer;padding:.7rem 1rem;border:1px solid var(--jh-line);border-radius:12px;background:var(--jh-surface);font-weight:600;font-size:15px;min-height:44px;align-items:center}
.tp-filters{display:grid;gap:16px}
.tp-group{margin:0;padding:0 0 14px;border:0;border-bottom:1px solid var(--jh-line)}
.tp-group legend{padding:0;margin:0 0 .5rem;font:600 14px/1.4 var(--jh-font-display)}
.tp-opt{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:.55rem;align-items:center;min-height:32px;font-size:14px;cursor:pointer}
.tp-opt input{width:16px;height:16px;margin:0;accent-color:var(--jh-accent)}
.tp-opt span{overflow-wrap:anywhere}
.tp-opt em{font-style:normal;font-size:12px;color:var(--jh-muted);font-variant-numeric:tabular-nums}
.tp-group details summary{margin-top:.25rem;font-size:13px;font-weight:600;color:var(--jh-accent);cursor:pointer;min-height:32px;display:flex;align-items:center}
.tp-filter-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.tp-results-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:14px;font-size:14.5px;color:var(--jh-muted)}
.tp-results-head p{margin:0}
.tp-results-head strong{color:var(--jh-ink)}
.tp-sort{display:flex;align-items:center;gap:.5rem;font-size:14px}
.tp-sort select{height:36px;padding:0 .6rem;border:1px solid var(--jh-line);border-radius:10px;background:var(--jh-surface);color:var(--jh-ink);font:inherit}
.tp-list{display:grid;gap:14px;margin-bottom:22px}
.tp-card{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:18px;padding:1.15rem 1.25rem;border:1px solid var(--jh-line);border-radius:16px;background:var(--jh-surface);transition:border-color var(--jh-dur) var(--jh-ease)}
.tp-card:hover{border-color:var(--jh-accent)}
.tp-card h3{margin:0;font:600 18px/1.35 var(--jh-font-display);letter-spacing:-.01em}
.tp-card h3 a{color:var(--jh-ink);text-decoration:none}
.tp-card h3 a:hover{color:var(--jh-accent)}
.tp-meta{margin:.3rem 0 0;font-size:13.5px;color:var(--jh-muted)}
.tp-badges{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}
.tp-b{display:inline-flex;align-items:center;padding:.18rem .6rem;border-radius:999px;border:1px solid var(--jh-line);font-size:12.5px;font-weight:600;line-height:1.5;color:var(--jh-ink)}
.tp-b--kind{background:var(--jh-soft)}
.tp-b--sinta{background:rgba(52,199,123,.14);border-color:rgba(52,199,123,.45)}
.tp-b--scopus{background:rgba(120,160,255,.16);border-color:rgba(120,160,255,.5)}
.tp-b--free{background:rgba(255,190,80,.18);border-color:rgba(255,170,40,.55)}
.tp-b--file{background:rgba(120,190,255,.16);border-color:rgba(90,160,240,.5)}
.tp-b--plain{color:var(--jh-muted)}
.tp-badges--hero .tp-b{color:var(--jh-night-ink);border-color:var(--jh-night-line)}
.tp-badges--hero .tp-b--plain{color:var(--jh-night-muted)}
.tp-badges--hero .tp-b--kind{background:rgba(255,255,255,.08)}
.tp-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}
.tp-chip{font-size:12.5px;color:var(--jh-muted);padding:.1rem .5rem;border-radius:8px;background:var(--jh-soft)}
.tp-card-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
.tp-card-thumb{display:block;text-decoration:none}
.tp-paper{display:flex;flex-direction:column;gap:5px;height:168px;padding:14px 12px;border:1px solid var(--jh-line);border-radius:8px;background:#fff;box-shadow:var(--jh-shadow);overflow:hidden}
.tp-paper>*{flex:none}
.tp-paper i{display:block;height:3px;border-radius:2px;background:#dfe4ec}
.tp-paper i.tp-paper-t{height:6px;width:78%;margin:0 auto 1px;background:#9aa7ba}
.tp-paper i.tp-paper-s{width:52%;margin:0 auto 6px}
.tp-paper b{display:block;margin-top:3px;font:700 7px/1.2 var(--jh-font-sans);color:#33415a;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-paper--big{height:330px;padding:26px 24px;gap:8px;border-radius:12px}
.tp-paper--big i{height:5px}
.tp-paper--big i.tp-paper-t{height:10px}
.tp-paper--big b{font-size:12px;margin-top:6px}
.tp-empty{padding:2rem 1.5rem;border:1px dashed var(--jh-line);border-radius:16px;text-align:center}
.tp-empty h2{margin:0 0 .5rem;font:600 19px/1.3 var(--jh-font-display)}
.tp-empty p{margin:.5rem 0;color:var(--jh-muted)}
.tp-disclaimer{margin:18px 0 0;font-size:13px;color:var(--jh-muted);max-width:760px}
.tp-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:40px;align-items:center}
.tp-hero-thumb .tp-paper{max-width:250px}
.tp-hero-note{margin:.9rem 0 0;font-size:13.5px;color:var(--jh-night-muted)}
.jp-hero-cta .btn small{margin-left:.4rem;font-weight:500;opacity:.75}
.tp-detail{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;padding-top:28px;padding-bottom:64px;align-items:start}
.tp-toc{position:sticky;top:84px;font-size:14px}
.tp-toc p{margin:0 0 .5rem;font:600 13px/1.4 var(--jh-font-display);color:var(--jh-muted);text-transform:uppercase;letter-spacing:.05em}
.tp-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:.15rem;border-left:2px solid var(--jh-line)}
.tp-toc a{display:block;padding:.35rem .8rem;color:var(--jh-muted);text-decoration:none}
.tp-toc a:hover{color:var(--jh-accent)}
.tp-article{display:grid;gap:18px;min-width:0}
.tp-article .jp-card p{margin:0 0 .75rem}
.tp-byline{margin:0;font-size:13.5px;color:var(--jh-muted)}
.tp-note{font-size:13.5px;color:var(--jh-muted)}
.tp-table{width:100%;border-collapse:collapse;font-size:15px;margin-bottom:.75rem}
.tp-table th,.tp-table td{padding:.6rem .7rem;border-bottom:1px solid var(--jh-line);text-align:left;vertical-align:top}
.tp-table thead th{font-size:13px;color:var(--jh-muted);font-weight:600}
.tp-table tbody th{width:32%;font-weight:600}
.tp-steps{margin:0;padding-left:1.2rem;display:grid;gap:.6rem}
.tp-check{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.2rem}
.tp-check label{display:grid;grid-template-columns:20px minmax(0,1fr);gap:.6rem;align-items:start;padding:.45rem 0;min-height:40px;cursor:pointer}
.tp-check input{width:18px;height:18px;margin:.15rem 0 0;accent-color:var(--jh-accent)}
.tp-check input:checked+span{color:var(--jh-muted);text-decoration:line-through}
.tp-faq{border-bottom:1px solid var(--jh-line)}
.tp-faq summary{padding:.8rem 0;font-weight:600;cursor:pointer;min-height:44px}
.tp-faq p{margin:0 0 .9rem!important;color:var(--jh-muted)}
.tp-h2{margin:8px 0 .85rem;font:600 21px/1.3 var(--jh-font-display);letter-spacing:-.015em}
.tp-related{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.tp-rel{display:grid;gap:.3rem;padding:.9rem 1rem;border:1px solid var(--jh-line);border-radius:14px;background:var(--jh-surface);text-decoration:none;color:var(--jh-ink)}
.tp-rel:hover{border-color:var(--jh-accent)}
.tp-rel strong{font-size:14.5px;line-height:1.4}
.tp-rel span{font-size:13px;color:var(--jh-muted)}
.tp-guide h2,.tp-guide h3{font:600 17px/1.35 var(--jh-font-display);margin:1rem 0 .5rem}
[data-theme=dark] .tp-paper{background:#f4f6fa}
@media (max-width:1023px){
  .tp-layout,.tp-detail{grid-template-columns:minmax(0,1fr);gap:18px}
  .tp-side,.tp-toc{position:static;max-height:none}
  .tp-drawer>summary{display:flex}
  .tp-drawer[open]>summary{margin-bottom:14px}
  .tp-toc{display:none}
  .tp-hero{grid-template-columns:minmax(0,1fr)}
  .tp-hero-thumb{display:none}
}
@media (max-width:560px){
  .tp-card{grid-template-columns:minmax(0,1fr)}
  .tp-card-thumb{display:none}
  .tp-card-actions .btn{flex:1 1 auto;min-height:44px}
  .tp-table tbody th{width:38%}
}
