/* =====================================================================
   JDIH Politeknik Negeri Sambas — Stylesheet publik
   ===================================================================== */
:root {
  --navy: #0b2a4a;
  --navy-2: #123d69;
  --navy-3: #1d5a94;
  --accent: #f5b301;
  --accent-2: #ffcb3d;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6778;
  --line: #e4e8ef;
  --green: #0f8a4b; --green-bg: #e3f6ea;
  --red: #c42b2b;   --red-bg: #fde8e8;
  --amber: #a15c00; --amber-bg: #fff2d6;
  --gray: #4b5563;  --gray-bg: #eef0f3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 42, 74, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 42, 74, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --accent-dark: #b98300;
  --fs: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 2.5rem; height: 2.5rem; }

/* ---------- Header ---------- */
.utility-bar { background: var(--navy); color: #c7d3e3; font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.utility-info, .utility-links { display: flex; align-items: center; gap: 1.2rem; }
.utility-info a, .utility-info > span { display: inline-flex; align-items: center; gap: .4rem; color: #c7d3e3; }
.utility-info .icon { width: 14px; height: 14px; color: var(--accent); }
.utility-links a { color: #c7d3e3; }
.utility-links a:hover, .utility-info a:hover { color: #fff; }
.utility-login { background: var(--accent); color: #1a1300 !important; font-weight: 700; padding: .2rem .75rem; border-radius: 6px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -18px rgba(11,42,74,.5); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text strong em { font-style: normal; color: var(--accent-dark); }
.brand-text small { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: #b7c4d6; }
.brand-light .brand-text strong em { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.main-nav a { position: relative; color: var(--text); font-weight: 600; font-size: .92rem; padding: 1.55rem .7rem; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { color: var(--navy-3); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }
.main-nav .nav-search { margin-left: .4rem; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 10px; background: var(--bg); }
.main-nav .nav-search::after { display: none; }
.nav-toggle { display: none; background: var(--bg); border: 0; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .95rem; padding: .75rem 1.3rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1300; }
.btn-accent:hover { background: var(--accent-2); color: #1a1300; }
.btn-dark { background: #111827; color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-disabled { background: var(--gray-bg); color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .875rem; color: var(--text); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; letter-spacing: .01em; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-navy { background: #e6eef8; color: var(--navy-2); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }
.badge-light { background: var(--bg); color: var(--text); }
.badge-accent { background: rgba(245,179,1,.18); color: #7a5600; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: #0a5c33; border-color: #bfe8cf; }
.alert-error { background: var(--red-bg); color: #8a1c1c; border-color: #f6c5c5; }
.alert-warning { background: var(--amber-bg); color: #7a4600; border-color: #f4dca4; }
.alert-info { background: #e6eef8; color: var(--navy-2); }

/* ---------- Hero (split, terang) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero-deco { position: absolute; inset: 0; background-image: radial-gradient(rgba(11,42,74,.09) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero-deco::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245,179,1,.28), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-3); background: #fff; border: 1px solid #d5e1ef; padding: .35rem .85rem; border-radius: 6px; margin-bottom: 1.2rem; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,179,1,.2); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; color: var(--navy); margin: 0 0 .25em; }
.hero-sub { display: inline-block; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--navy-3); margin: 0 0 1rem; padding-bottom: .2rem; border-bottom: 4px solid var(--accent); }
.hero-lead { color: var(--muted); max-width: 560px; font-size: 1.02rem; margin-bottom: 1.6rem; }
.hero-search { display: grid; grid-template-columns: 170px 1fr auto; gap: 0; background: #fff; border: 1px solid #d5e1ef; border-radius: 12px; padding: 6px; box-shadow: var(--shadow); max-width: 620px; }
.hero-search select, .hero-search input { border: 0; background-color: transparent; box-shadow: none !important; border-radius: 8px; }
.hero-search select { border-right: 1px solid var(--line); border-radius: 0; font-size: .88rem; }
.hero-search input { padding-left: 1rem; }
.hero-search .btn { border-radius: 9px; padding: .7rem 1.2rem; }
.hero-quick { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; color: var(--muted); align-items: center; }
.hero-quick a { color: var(--navy-2); background: #fff; border: 1px solid #d5e1ef; padding: .28rem .75rem; border-radius: 6px; font-weight: 600; }
.hero-quick a:hover { border-color: var(--navy-3); }
.hero-panel { background: var(--navy); color: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.hero-panel::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; background: var(--accent); border-radius: 0 0 4px 4px; }
.hero-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin: .4rem 0 1.1rem; }
.hero-panel-head span { font-size: .85rem; color: #b7c4d6; font-weight: 600; }
.hero-panel-head strong { font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; color: #fff; transition: background .2s, border-color .2s; }
.stat:hover { background: rgba(255,255,255,.12); border-color: rgba(245,179,1,.5); color: #fff; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(245,179,1,.15); color: var(--accent); display: grid; place-items: center; flex: none; }
.stat-body { display: flex; flex-direction: column; line-height: 1.15; }
.stat-body strong { font-family: var(--font-head); font-size: 1.5rem; }
.stat-body small { color: #b7c4d6; font-size: .8rem; font-weight: 600; }
.hero-panel-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .9rem; }
.hero-panel-foot:hover { color: var(--accent); }

/* akses cepat */
.quick-wrap { margin-top: -28px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { display: flex; gap: .85rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); box-shadow: 0 8px 22px -18px rgba(11,42,74,.45); transition: transform .2s, border-color .2s; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.quick-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff6dc; color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.quick-card strong { display: block; font-size: .95rem; }
.quick-card small { color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 32px 0 72px; }
.section-alt { background: var(--bg); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); }
.section-title h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 4px; margin: .7rem auto 0; }
.section-title p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.side-stack { display: grid; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.panel-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; padding-left: .75rem; border-left: 4px solid var(--accent); }

/* callout rancangan */
.callout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #fffaf0, #fff4d6); border: 1px solid #f5dfa3; border-radius: 20px; padding: 28px 32px; }
.callout h2 { font-size: 1.35rem; font-weight: 800; margin: .7rem 0 .4rem; }
.callout p { color: #6b5520; margin: 0; }
.callout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.callout-list a { display: block; background: #fff; border-radius: 12px; padding: .8rem 1rem; color: var(--text); border: 1px solid #f3e3b8; }
.callout-list a:hover { border-color: var(--accent); }
.callout-list strong { display: block; font-size: .92rem; }
.callout-list small { color: var(--muted); }

/* ---------- Dokumen list ---------- */
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid #d5e1ef; border-radius: 10px; background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.doc-item:hover { border-left-color: var(--accent); border-color: #c9d6e6; box-shadow: var(--shadow); color: var(--text); transform: translateY(-1px); }
.doc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--navy-3); display: grid; place-items: center; flex: none; }
.doc-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.doc-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.doc-tags-lg { margin-bottom: 1rem; }
.doc-tags-lg .badge { font-size: .8rem; padding: .35rem .75rem; }
.doc-year { font-size: .75rem; font-weight: 700; color: var(--muted); }
.doc-title { font-weight: 700; line-height: 1.4; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--muted); }
.doc-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.news-mini { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.news-mini:last-of-type { border-bottom: 0; }
.news-mini time { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.news-mini strong { display: block; margin: .2rem 0; line-height: 1.35; }
.news-mini span { font-size: .875rem; color: var(--muted); }
.news-mini:hover strong { color: var(--navy-3); }
.rank-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .75rem; }
.rank-list li::marker { font-weight: 800; color: var(--accent); }
.rank-list a { color: var(--text); font-weight: 600; font-size: .9rem; display: block; line-height: 1.4; }
.rank-list small { color: var(--muted); font-size: .78rem; }

/* jenis & jaringan */
.jenis-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jenis-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; display: flex; flex-direction: column; gap: .3rem; color: var(--text); transition: .2s; }
.jenis-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); color: var(--text); }
.jenis-icon { width: 40px; height: 40px; border-radius: 10px; background: #eef3f9; color: var(--navy-3); display: grid; place-items: center; margin-bottom: .4rem; }
.jenis-card strong { font-size: .92rem; line-height: 1.3; }
.jenis-card small { color: var(--muted); font-weight: 600; }
.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.network-card { display: flex; align-items: center; gap: .75rem; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-weight: 700; font-size: .9rem; transition: .2s; }
.network-card:hover { border-color: var(--accent); color: var(--navy); }
.network-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; flex: none; }

/* ---------- Page head ---------- */
.page-head { padding: 38px 0 30px; background: linear-gradient(180deg, #eef4fb, #f8fafc); border-bottom: 1px solid var(--line); margin-bottom: 8px; position: relative; }
.page-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 120px; height: 4px; background: var(--accent); }
.page-head h1 { color: var(--navy); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; max-width: 960px; }
.lead { color: var(--muted); max-width: 720px; margin: 0; }

/* ---------- Filters ---------- */
.filter-bar { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; margin: 24px 0 18px; }
.filter-bar-4 { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.field-search { position: relative; display: flex; align-items: center; }
.field-search .icon { position: absolute; left: 14px; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .72rem .9rem; transition: border-color .2s, box-shadow .2s; }
.field-search input { padding-left: 2.6rem; background: #fbfbf8; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6778' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.2rem; font-weight: 600; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29,90,148,.12); }
.result-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 18px; }
.pill { background: #e6eef8; color: var(--navy-2); padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; }
.pill strong { font-size: 1.05rem; }
.pill-light { background: var(--bg); color: var(--text); }
.link-reset { font-size: .875rem; font-weight: 600; color: var(--red); }
.inline-search { display: flex; gap: 10px; max-width: 580px; margin: 24px 0 10px; }
.inline-search .field-search { flex: 1; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.page { min-width: 40px; height: 40px; padding: 0 .7rem; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; }
.page:hover { border-color: var(--navy-3); color: var(--navy); }
.page.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page.disabled, .page.dots { color: #b3bbc7; border-color: transparent; }

/* ---------- Detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.sticky { position: sticky; top: 110px; }
.meta-table { margin: 0; display: grid; }
.meta-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.meta-table > div:last-child { border-bottom: 0; }
.meta-table dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.meta-table dd { margin: 0; font-weight: 600; font-size: .92rem; }
.meta-compact > div { grid-template-columns: 1fr auto; }
.pdf-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.file-info { text-align: center; font-size: .8rem; color: var(--muted); margin: .5rem 0 1rem; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.side-stats > div { background: var(--bg); border-radius: 12px; padding: .8rem; text-align: center; display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: .8rem; }
.side-stats strong { color: var(--text); font-size: 1.3rem; }
.detail-side .btn { margin-bottom: 10px; }
.hash { font-size: .75rem; color: var(--muted); text-align: center; margin: .4rem 0 0; word-break: break-all; }
.relasi-list, .mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.relasi-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .92rem; }
.mini-list a { display: block; font-weight: 600; font-size: .9rem; color: var(--text); line-height: 1.4; }
.mini-list a:hover { color: var(--navy-3); }
.mini-list small { color: var(--muted); font-size: .78rem; }
.prose { color: #334155; }
.prose p { margin-bottom: 1.05em; }
.prose-wide { max-width: 980px; font-size: 1.02rem; line-height: 1.8; padding-top: 16px; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state .icon-lg { margin: 0 auto 1rem; color: #b3bbc7; }
.empty-state h2 { color: var(--text); font-size: 1.2rem; }

/* ---------- Profil ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin: 28px 0 8px; }
.vm-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.vm-visi { background: var(--navy); color: #fff; border: 0; }
.vm-visi p { font-size: 1.1rem; font-weight: 600; line-height: 1.6; margin: 0; }
.vm-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: #334155; }
.eyebrow { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-3); margin-bottom: .6rem; }
.vm-visi .eyebrow, .eyebrow-accent { color: var(--accent); }
.h-section { font-size: 1.5rem; font-weight: 800; margin: 44px 0 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .2rem; }
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 36px; position: relative; }
.org-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; position: relative; }
.org-level + .org-level::before { content: ''; position: absolute; top: -36px; left: 50%; width: 2px; height: 36px; background: var(--line); }
.org-card { width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; box-shadow: 0 4px 14px -8px rgba(11,42,74,.2); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.org-card img, .org-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; }
.org-avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--accent); font-size: 2rem; font-weight: 800; }
.org-card strong { font-size: .85rem; letter-spacing: .04em; }
.org-card span { color: #334155; font-size: .9rem; }

/* ---------- Tahapan ---------- */
.stage-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 36px; }
.stage-nav a { display: inline-flex; align-items: center; gap: .55rem; background: var(--bg); border: 1px solid var(--line); padding: .5rem 1rem .5rem .5rem; border-radius: 999px; color: var(--text); font-weight: 700; font-size: .9rem; }
.stage-nav a span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-size: .8rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; position: relative; padding-bottom: 44px; scroll-margin-top: 110px; }
.timeline-item::before { content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-num { width: 56px; height: 56px; border-radius: 50%; background: #111827; color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.timeline-body h2 { font-size: 1.35rem; font-weight: 800; margin: .7rem 0 .3rem; }
.flow { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 34px; counter-reset: f; }
.flow li { position: relative; background: #f2f7fd; border: 1.5px solid #bcd3ee; border-radius: 12px; padding: 14px 14px 14px; font-size: .88rem; font-weight: 500; color: #1e3a5f; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--navy-3); font-weight: 800; }
.flow-n { display: block; font-size: .72rem; font-weight: 800; color: var(--navy-3); margin-bottom: .3rem; }
.flow-img { margin: 1.4rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.flow-img figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* ---------- Rancangan ---------- */
.ran-list { display: grid; gap: 14px; }
.ran-card { display: flex; flex-direction: column; gap: .6rem; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); transition: .2s; }
.ran-card:hover { border-color: #c9d6e6; box-shadow: var(--shadow); color: var(--text); }
.ran-top { display: flex; justify-content: space-between; gap: 1rem; }
.ran-card strong { font-size: 1.08rem; line-height: 1.4; }
.ran-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .85rem; }
.ran-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.countdown { text-align: center; background: var(--green-bg); color: var(--green); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.countdown strong { display: block; font-size: 2.2rem; line-height: 1; }
.countdown.closed { background: var(--red-bg); color: var(--red); }
.countdown.closed strong { font-size: 1.4rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: .35rem; }
.form-group label, .stars legend { font-weight: 700; font-size: .88rem; }
.req { color: var(--red); }
.error { color: var(--red); font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: #334155; }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.char-count { font-size: .75rem; color: var(--muted); text-align: right; }
.form .btn { justify-self: start; }

/* ---------- Glosarium ---------- */
.alphabet { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.alphabet a, .alphabet span { min-width: 34px; height: 34px; padding: 0 .55rem; display: grid; place-items: center; border-radius: 8px; font-weight: 700; font-size: .82rem; background: var(--bg); color: var(--text); }
.alphabet a:hover { background: #e6eef8; }
.alphabet a.active { background: var(--navy); color: #fff; }
.alphabet span.disabled { background: transparent; border: 1px dashed var(--line); color: #b3bbc7; }
.glossary { margin: 0; }
.glossary-row { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.glossary dt strong { display: block; font-size: 1.02rem; }
.glossary dt small { display: block; font-weight: 700; color: var(--muted); margin-top: .2rem; }
.glossary dd { margin: 0; }
.glossary dd p { margin: 0 0 .3rem; color: #334155; }
.glossary cite { font-size: .82rem; color: var(--muted); }

/* ---------- Berita ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); transition: .2s; }
.news-card:hover { box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.news-card img, .news-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: rgba(245,179,1,.7); }
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: .4rem; }
.news-body time { font-size: .78rem; font-weight: 700; color: var(--muted); }
.news-body strong { font-size: 1.05rem; line-height: 1.35; }
.news-body span { color: var(--muted); font-size: .9rem; }
.news-article .muted { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.news-hero { width: 100%; border-radius: 16px; margin: .5rem 0 1.5rem; }
.news-article .prose { font-size: 1.05rem; line-height: 1.85; }

/* ---------- Kontak & penilaian ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.contact-hero { background: #111827; color: #fff; border-radius: 22px; padding: 32px; margin-bottom: 24px; }
.contact-hero h2 { font-size: 1.5rem; font-weight: 800; }
.contact-hero p { color: #cbd5e1; }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; margin-left: .5rem; vertical-align: middle; }
.social:hover { background: var(--accent); color: #000; }
.contact-hero .social { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.ci { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--navy); flex: none; }
.contact-list small { font-weight: 700; color: var(--muted); font-size: .8rem; }
.contact-list p { margin: .15rem 0 .2rem; font-weight: 600; }
.stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.stars legend { width: 100%; margin-bottom: .5rem; float: left; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; color: #d4d9e1; }
.stars label .icon { width: 40px; height: 40px; fill: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 3px solid var(--navy-3); border-radius: 6px; }
.rating-summary { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; }
.rating-summary strong { font-size: 3rem; font-weight: 800; color: var(--navy); }
.rating-summary span { color: var(--muted); }
.rating-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.rating-bars li { display: grid; grid-template-columns: 40px 1fr 30px; gap: .7rem; align-items: center; font-size: .85rem; font-weight: 600; }
progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 99px; background: var(--bg); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--bg); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2440; color: #c3cbd8; border-top: 5px solid var(--accent); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; padding: 64px 0 44px; }
.site-footer h3 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer a { color: #c3cbd8; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { font-size: .9rem; margin-top: 1rem; }
.footer-contact { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2rem; color: var(--accent); }
.visitor-box { background: rgba(255,255,255,.06); border-radius: 14px; padding: 16px 18px; display: grid; gap: .8rem; margin-bottom: 14px; }
.visitor-box div { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.visitor-box strong { color: #fff; font-size: 1.15rem; }
.footer-bottom { background: #071a2f; border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; font-size: .82rem; text-align: center; color: #8793a6; }

/* ---------- Floating: aksesibilitas & ke atas ---------- */
.a11y { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.a11y-toggle { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); }
.a11y-toggle .icon { width: 26px; height: 26px; }
.a11y-panel { position: absolute; right: 0; bottom: 66px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; width: 220px; display: grid; gap: 6px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel strong { font-size: .9rem; margin-bottom: .2rem; }
.a11y-panel button { text-align: left; background: var(--bg); border: 0; border-radius: 8px; padding: .55rem .75rem; cursor: pointer; font-size: .85rem; font-weight: 600; }
.a11y-panel button:hover { background: #e6eef8; }
.to-top { position: fixed; right: 20px; bottom: 86px; z-index: 59; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.to-top[hidden] { display: none; }
html.a11y-contrast { --text: #000; --muted: #1f2937; --line: #6b7280; --navy-3: #0b2a4a; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .hero { background: #fff; }
html.a11y-links a { text-decoration: underline; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 1.55rem .5rem; font-size: .86rem; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-bar .field-search { grid-column: 1 / -1; }
  .filter-bar-4 { grid-template-columns: 1fr 1fr 1fr; }
  .jenis-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-shell { flex-wrap: wrap; min-height: 64px; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .2rem 0 .8rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem .9rem; border-radius: 10px; }
  .main-nav a::after { left: 0; right: auto; top: 20%; bottom: 20%; width: 3px; height: auto; }
  .main-nav a.active { background: var(--bg); }
  .main-nav .nav-search { display: none; }
  .hide-sm { display: none !important; }
  .split, .detail-grid, .contact-grid, .callout, .vm-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid, .network-grid { grid-template-columns: repeat(2, 1fr); }
  .glossary-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 48px; }
  .hero-search { grid-template-columns: 1fr; gap: 6px; }
  .hero-search select { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-grid { grid-template-columns: 1fr; }
  .utility-links a:not(.utility-login) { display: none; }
  .filter-bar, .filter-bar-4, .form-row { grid-template-columns: 1fr; }
  .jenis-grid { grid-template-columns: 1fr 1fr; }
  .news-grid, .network-grid, .footer-grid { grid-template-columns: 1fr; }
  .meta-table > div { grid-template-columns: 1fr; gap: .15rem; }
  .pdf-frame { height: 480px; }
  .panel { padding: 20px; }
  .brand-text small { display: none; }
  .flow li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -26px; transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .a11y, .to-top, .filter-bar, .detail-side { display: none !important; }
  .detail-grid { grid-template-columns: 1fr; }
}

.callout-wrap { margin-top: 28px; }
.callout-wrap + .section { padding-top: 40px; }
