/* Shared content typography, based on the Beranda type scale. */
#top .view,
#top .news-catalog,
#top .news-article { font-size: 1rem; }

#top .view h1,
#top .news-catalog h1,
#top .news-article h1 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.3; }

#top .view h2 { font-size: 1.5rem; line-height: 1.35; }
#top .view h3 { font-size: 1.25rem; line-height: 1.4; }
#top .view h4 { font-size: 1.125rem; line-height: 1.4; }
#top .view h5,
#top .view h6 { font-size: 1rem; line-height: 1.45; }

#top .view p,
#top .view .artbody p:first-child,
#top .view .hist .txt p,
#top .view .visi p,
#top .view .lede,
#top .view .lead,
#top .view .misi li,
#top .view .faq,
#top .news-article-content { font-size: 1rem; line-height: 1.7; }

#top .view .slogan q { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.6; }
#top .view .news h2,
#top .view .grp h2,
#top .view .ann-group h2 { font-size: 1.25rem; }
#top .view .side .sec-head h3,
#top .view .facts h3,
#top .news-card h2 { font-size: 1.05rem; line-height: 1.4; }
#top .view .tbl { font-size: .95rem; }
#top .view .tbl th,
#top .view .date,
#top .view .adate,
#top .view .ndate,
#top .view .badge,
#top .view .crumb,
#top .view .facts dt,
#top .news-card-meta > * { font-size: .875rem; }
#top .view .btn,
#top .view .dl,
#top .view .amore,
#top .view .sec-head a,
#top .news-card .news-card-more { font-size: .95rem; }
#top .news-card-body p { font-size: 1rem; line-height: 1.6; }
#top .news-category-panel h2,
#top .news-category-panel a,
#top .news-search input[type=search],
#top .news-search button { font-size: .9rem; }
#top .news-category-panel a span { font-size: .875rem; }

@media (max-width: 520px) {
  #top .view h2 { font-size: 1.35rem; }
  #top .view h3 { font-size: 1.15rem; }
  #top .view .grp h2,
  #top .view .news h2 { font-size: 1.125rem; }
}

/* Footer typography shared by every page, consistent across all pages. */
body > footer { font-size: 13px; }
body > footer h5 { font-size: 14px; }
body > footer .fdesc,
body > footer .flinks,
body > footer .flinks a,
body > footer .fcontact,
body > footer .fcontact a { font-size: 13px; }
body > footer .fmap,
body > footer .fbottom,
body > footer .fbottom p,
body > footer .fbottom a { font-size: 12px; }
body > footer .totop { font-size: 1.3rem; }

/* One shared quick-link design, taken from Beranda, for all pages. */
#top .quick{position:relative;z-index:5;max-width:1140px;margin:-26px auto 2.5rem;padding:0 16px}
#top .quick-in{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--bg);border-radius:16px;border-top:3px solid var(--brand);box-shadow:0 8px 24px rgba(25,118,210,.14),0 2px 6px rgba(0,0,0,.04);padding:12px 14px 14px}
#top .quick-title{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--brand);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0;text-align:center}
#top .quick-title svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#top .quick-slider{position:relative;width:100%;display:flex;align-items:center;gap:8px}
#top .quick-track-wrap{position:relative;flex:1;min-width:0;overflow:hidden}
#top .quick-track-wrap::before,.quick-track-wrap::after{content:"";position:absolute;top:0;bottom:0;width:24px;pointer-events:none;z-index:2;opacity:0;transition:opacity .2s ease}
#top .quick-track-wrap::before{left:0;background:linear-gradient(to right,var(--bg),rgba(255,255,255,0))}
#top .quick-track-wrap::after{right:0;background:linear-gradient(to left,var(--bg),rgba(255,255,255,0))}
#top .quick-track-wrap.has-left::before{opacity:1}
#top .quick-track-wrap.has-right::after{opacity:1}
#top .quick-track{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px;list-style:none;margin:0 auto;padding:4px 2px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;width:max-content;max-width:100%}
#top .quick-track::-webkit-scrollbar{display:none}
#top .quick-track li{flex:none;display:inline-flex;align-items:center}
#top .quick-in a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;height:48px;padding:0 18px;border-radius:999px;background:#f0f6fd;color:var(--brand);border:1px solid #d0e1f5;text-decoration:none;font-size:11px;font-weight:600;transition:all .2s ease;box-shadow:0 1px 3px rgba(0,0,0,.03);flex:none}
#top .quick-in a:hover{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 4px 12px rgba(25,118,210,.25);transform:translateY(-2px)}
#top .quick-in a:active{transform:translateY(0)}
#top .quick-in a.logo-link{width:136px;height:48px;padding:6px 14px;background:#fff;border:1px solid #dce4ec}
#top .quick-in a.logo-link img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
#top .quick-in a.logo-link:hover{background:#fff;border-color:var(--brand);box-shadow:0 4px 14px rgba(25,118,210,.22);transform:translateY(-2px)}
#top .quick-btn{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--brand);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 6px rgba(0,0,0,.06);padding:0;user-select:none;z-index:3}
#top .quick-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#top .quick-btn:hover:not(:disabled){background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 4px 10px rgba(25,118,210,.3);transform:scale(1.06)}
#top .quick-btn:active:not(:disabled){transform:scale(.94)}
#top .quick-btn:disabled{opacity:.28;cursor:default;box-shadow:none}
#top .quick-title,
#top .quick-in a,
#top .quick-in b { font-size: 11px; }
#top .quick-in a.logo-link.arjuna-logo { background: #0f4c93; border-color: #0f4c93; }
#top .inner-quick .quick { margin: 24px auto 0; }

/* Berita uses the same banner and overlapping quick links as other pages. */
#top .news-view .inner-quick .quick { margin: -26px auto 2.5rem; }
#top .news-catalog .news-catalog-title { margin: 0 0 14px; color: #0f4c93; text-align: center; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }

/* Category-based post detail layout. */
#top.post-detail { background: #fff; }
#top .post-hero { position: relative; overflow: hidden; background: #080e16; color: #fff; }
#top .post-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
#top .post-hero-inner { position: relative; padding-top: 32px; padding-bottom: 56px; }
#top .post-crumb { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 24px; padding: 0; font-size: .9rem; }
#top .post-crumb li + li::before { content: '›'; margin-right: 10px; color: #f5a623; }
#top .post-crumb li:last-child { max-width: 45ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #f5a623; }
#top .post-hero a { color: inherit; text-decoration: none; }
#top .post-hero h1 { max-width: 950px; margin: 0 0 28px; color: #fff; font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 800; line-height: 1.3; }
#top .post-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .875rem; }
#top .post-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 50px; padding-bottom: 50px; }
#top .post-detail-article,
#top .post-related { min-width: 0; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 5px 24px #00000006; }
#top .post-detail-cover { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 48px; }
#top .post-detail-article .news-article-content { font-size: 1rem; line-height: 1.85; }
#top .post-detail-article .news-article-content p { margin: 0 0 24px; }
#top .post-related { padding: 24px; }
#top .post-related > h2 { margin: 0; padding: 18px 20px; background: #0f4c93; color: #fff; font-size: 1.125rem; font-weight: 700; }
#top .post-related article { padding: 22px 0; border-bottom: 1px solid #eee; }
#top .post-related h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; line-height: 1.4; }
#top .post-related h3 a { color: #30343b; text-decoration: none; }
#top .post-related p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 10px; color: #626979; font-size: .875rem; line-height: 1.5; }
#top .post-related time { color: #89909c; font-size: .75rem; }
#top .post-detail-article .post-navigation { margin-top: 36px; padding-top: 20px; border-top: 1px solid #eee; }
#top .post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; }
#top .post-navigation a { color: #30343b; text-decoration: none; font-weight: 600; }
#top .post-navigation a span { display: block; margin-bottom: 8px; color: #89909c; font-size: .875rem; }
@media (max-width: 860px) { #top .post-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 520px) { #top .post-detail-article, #top .post-related { padding: 20px; } #top .post-detail-cover { margin-bottom: 28px; } }

#top .post-detail-grid { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
#top .post-detail-article { padding: 40px; box-shadow: 0 6px 28px rgba(0, 0, 0, .1); }
#top .post-heading { position: static; z-index: auto; margin-bottom: 28px; }
#top .post-heading h1 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.3; color: #0f4c93; margin-bottom: 20px; }
#top .post-heading .post-crumb { color: #626979; }
#top .post-heading .post-crumb a { color: #0f4c93; text-decoration: none; }
#top .post-heading .post-crumb li:last-child { color: #626979; }
#top .post-meta { align-items: center; gap: 12px; color: #626979; margin-bottom: 20px; }
#top .post-meta > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#top .post-meta i { display: inline-flex; width: 14px; height: 14px; color: #0f4c93; }
#top .post-meta i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { #top .post-detail-grid { padding-left: 20px; padding-right: 20px; } #top .post-detail-article { padding: 24px; } }

/* Requested site colors and homepage action size. */
#top.post-detail > .banner h1 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }
#top .news-search button { background: #0f4c93; color: #fff; }
#top .news-search input[type=search] { color: #30343b; border-color: #dce4ec; }
#top .news-search input[type=search]::placeholder { color: #626979; }
#top .news-search input[type=search]:focus-visible { outline: 2px solid #0f4c93; outline-offset: 2px; }
#top .news-category-panel h2,
#top .news-category-panel a { color: #30343b; }
body #top #info a.btn.out { font-size: 14px !important; }

#top .program-hub-content { padding-top: 12px; padding-bottom: 64px; }
#top .program-hub-intro { margin-bottom: 28px; max-width: 700px; }
#top .program-hub-intro p { color: #626979; }
#top .program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#top .program-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid #dce7f5; border-radius: 14px; background: #fff; color: #30343b; text-decoration: none; }
#top .program-card-label { color: #0f4c93; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
#top .program-hub .program-card h2 { font-size: 1.125rem; font-weight: 700; margin: 0; color: #152d49; }
#top .program-card p { margin: 0; color: #626979; }
#top .program-card-action { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 10px; font-size: .875rem; font-weight: 700; color: #0f4c93; }
#top .program-card:hover { border-color: #1976d2; box-shadow: 0 8px 24px #0f4c9310; }
#top .program-card:focus-visible { outline: 3px solid #1976d2; outline-offset: 4px; }
@media (max-width: 900px) { #top .program-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { #top .program-grid { grid-template-columns: minmax(0,1fr); } }

/* Shared entrance motion. No hidden resting state or navigation delay. */
@keyframes lppm-page-enter {
  from { opacity: .4; }
  to { opacity: 1; }
}
@keyframes lppm-content-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  main#top { animation: lppm-page-enter 240ms ease-out; }
  .content-enter { animation: lppm-content-enter 480ms cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0ms) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  main#top, .content-enter { animation: none; }
}

/* Detail hero shares the inner-page banner and accommodates long post titles. */
#top.post-detail > .banner h1 { max-width: 1000px; line-height: 1.35; overflow-wrap: anywhere; }
#top.post-detail > .banner .crumb { align-items: center; flex-wrap: nowrap; }
#top.post-detail > .banner .crumb li:first-child { flex: none; }
#top.post-detail > .banner .crumb li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Navigation stays visible while scrolling in either direction. */
body > header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; align-self: stretch; width: 100%; background: #fff; transition: box-shadow .28s ease; }
body.admin-bar > header { top: calc(32px + env(safe-area-inset-top, 0px)); }
body > header.is-scrolled { box-shadow: 0 5px 24px rgba(10, 47, 92, .14); }
body > header .navbar { position: relative; top: auto; }
@media (max-width: 782px) { body.admin-bar > header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { body.admin-bar > header { top: env(safe-area-inset-top, 0px); } }
@keyframes lppm-top-click {
  0% { transform: scale(1); }
  35% { transform: translateY(-8px) scale(1.12); box-shadow: 0 0 0 10px rgba(25,118,210,.15); }
  70% { transform: translateY(1px) scale(.96); }
  100% { transform: scale(1); }
}
body > footer .totop { transition: background-color .2s, box-shadow .2s; }
body > footer .totop.is-returning { animation: lppm-top-click .55s ease; }
@media (prefers-reduced-motion: reduce) {
  body > header, body > footer .totop { transition: none; }
  body > footer .totop.is-returning { animation: none; }
}

/* Funding records: clear program panels and readable recipient lists. */
#top .program-records .page { padding: 4px 0 64px; }
#top .program-records .records-panel { padding: 28px; margin: 0 0 28px; border: 1px solid #dce7f5; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px #0f4c9306; }
#top .program-records .records-heading { margin-bottom: 24px; }
#top .program-records .records-heading h2 { max-width: 800px; margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: #152d49; }
#top .program-records .records-heading .lede { margin: 0 0 12px; color: #626979; font-size: .95rem; }
#top .program-records .records-count { display: inline-block; padding: 4px 10px; background: #edf5ff; color: #0f4c93; border-radius: 6px; font-size: .8rem; font-weight: 600; }
#top .program-records .records-table-wrap { overflow-x: auto; border-radius: 10px; }
#top .program-records .tbl { table-layout: fixed; width: 100%; font-size: .95rem; }
#top .program-records .tbl th { padding: 15px 16px; font-size: .875rem; font-weight: 700; }
#top .program-records .tbl th:first-child { width: 54px; }
#top .program-records .tbl th:nth-child(2) { width: 25%; }
#top .program-records .tbl th:last-child { width: 22%; }
#top .program-records .tbl td { padding: 18px 16px; line-height: 1.65; overflow-wrap: anywhere; color: #35445a; }
#top .program-records .tbl td.dosen { color: #152d49; }
#top .program-records .tbl tbody tr:nth-child(even) { background: #f8fafd; }
#top .program-records .badge { white-space: normal; font-size: .8rem; line-height: 1.5; }
#top .program-records .records-table-wrap:focus-visible { outline: 2px solid #1976d2; outline-offset: 3px; }
@media (max-width: 760px) {
  #top .program-records .records-panel { padding: 20px; }
  #top .program-records .tbl { border: 0; background: transparent; overflow: visible; }
  #top .program-records .tbl tbody { display: grid; gap: 16px; }
  #top .program-records .tbl tr { padding: 16px; border: 1px solid #dce7f5; border-radius: 10px; }
  #top .program-records .tbl td { display: block; padding: 8px 0; border: 0; width: auto; }
  #top .program-records .tbl td.no { display: none; }
  #top .program-records .tbl td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #626979; font-size: .75rem; font-weight: 600; }
}

/* Current four-member LPPM organization chart. */
#top .org-current { padding: 20px 0; }
#top .org-current > .node { width: min(100%, 340px); }
#top .org-current > .stem { height: 32px; width: 2px; background: #b9cfe9; }
#top .org-current .branch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 1040px; position: relative; }
#top .org-current .child { display: flex; justify-content: center; position: relative; padding-top: 28px; }
#top .org-current .child::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 28px; background: #b9cfe9; }
#top .org-current .child::after { content: ''; position: absolute; top: 0; left: -12px; right: -12px; height: 2px; background: #b9cfe9; }
#top .org-current .child:first-child::after { left: 50%; }
#top .org-current .child:last-child::after { right: 50%; }
#top .org-current .child .node { width: 100%; }
#top .org-current .node span { font-size: 1rem; margin-top: 8px; line-height: 1.5; }
@media (max-width: 760px) {
  #top .org-current .branch { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 340px; }
  #top .org-current .child { padding-top: 24px; }
  #top .org-current .child::before { height: 24px; }
  #top .org-current .child::after { display: none; }
  #top .org-current .child + .child::before { left: 12px; }
}

/* Team photos in the organization chart. */
#top .org-current .org-photo { width: 112px; height: 132px; margin: 0 auto 16px; overflow: hidden; border-radius: 10px; background: #edf5ff; }
#top .org-current .org-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; font-size: 14px; }
#top .org-current > .node .org-photo { width: 136px; height: 156px; }

/* Download library: choose a category and identify the document stage. */
#top .download-library { max-width: 1140px; }
#top .download-library [hidden] { display: none !important; }
#top .download-intro { max-width: 740px; margin: 0 0 24px; }
#top .download-eyebrow { display: block; color: #0f4c93; font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
#top .download-intro h2 { color: #152d49; font-weight: 750; margin-bottom: 12px; }
#top .download-intro p { color: #626979; margin: 0; }
#top .download-guide { padding: 20px 24px; border: 1px solid #d9e7f7; border-left: 4px solid #1976d2; border-radius: 10px; background: #f3f8ff; margin-bottom: 28px; }
#top .download-guide > b { color: #152d49; }
#top .download-guide p { margin: 8px 0 0; font-size: .9rem; line-height: 1.7; color: #526277; }
#top .download-tools { margin-bottom: 28px; }
#top .download-search { max-width: 600px; }
#top .download-search label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 8px; }
#top .download-search input { width: 100%; padding: 13px 16px; font: inherit; font-size: .95rem; color: #30343b; border: 1px solid #cfdae8; border-radius: 9px; background: #fff; }
#top .download-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#top .download-filters button,
#top .download-reset { padding: 10px 18px; border: 1px solid #dce7f5; border-radius: 8px; background: #fff; color: #0f4c93; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
#top .download-filters button[aria-pressed=true] { background: #0f4c93; color: #fff; border-color: #0f4c93; }
#top .download-results { margin: 14px 0 0; font-size: .875rem; color: #626979; }
#top .download-group { padding: 0; margin: 0 0 36px; }
#top .download-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
#top .download-group-heading h2 { font-size: 1.25rem; line-height: 1.4; color: #152d49; font-weight: 700; margin: 0; }
#top .download-group-heading > span { flex: none; color: #626979; font-size: .8rem; }
#top .download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
#top .download-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid #dce7f5; border-radius: 12px; background: #fff; }
#top .download-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#top .download-stage { background: #edf5ff; color: #0f4c93; padding: 5px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; }
#top .download-format { color: #626979; font-size: .8rem; }
#top .download-card h3 { font-size: 1.05rem; line-height: 1.5; color: #152d49; font-weight: 700; margin: 0 0 10px; }
#top .download-card p { color: #626979; font-size: .9rem; line-height: 1.6; margin: 0 0 22px; }
#top .download-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: auto; border-top: 1px solid #e8eef5; }
#top .download-meta { display: grid; gap: 4px; font-size: .75rem; color: #626979; }
#top .download-card-bottom a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: none; padding: 11px 14px; border-radius: 8px; background: #0f4c93; color: #fff; text-decoration: none; font-size: .875rem; font-weight: 600; }
#top .download-card-bottom a:hover { background: #0a2f5c; }
#top .download-help { padding: 20px 0 0; border-top: 1px solid #e8eef5; color: #626979; font-size: .9rem; }
#top .download-help a { color: #0f4c93; font-weight: 600; }
#top .download-empty { padding: 32px; text-align: center; background: #f6f9fd; border-radius: 12px; margin-bottom: 28px; }
#top .download-library :is(a,button,input):focus-visible { outline: 3px solid #1976d2; outline-offset: 3px; }
@media (max-width: 700px) { #top .download-grid { grid-template-columns: minmax(0,1fr); } #top .download-card { padding: 20px; } }
@media (max-width: 380px) { #top .download-card-bottom { align-items: stretch; flex-direction: column; } }

#top .download-unavailable { padding: 11px 14px; border-radius: 8px; background: #eef1f5; color: #626979; font-size: .875rem; font-weight: 600; text-align: center; }
