/* Polnustar — stylesheet bersama untuk website induk dan semua subdomain.
   Warna aksen tiap website diisi dari kolom sites.color lewat --accent. */

:root {
  --navy: #0b3a6f;
  --navy-deep: #072748;
  --accent: #0b3a6f;
  --ink: #14202e;
  --muted: #5b6878;
  --line: #e2e7ee;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --gold: #e0a526;
  --ok: #157347;
  --err: #b42318;
  --radius: 10px;
  --wrap: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Bilah institusi (sama di semua website) ---------- */
.topbar { background: var(--navy-deep); color: #c9d6e6; font-size: .8125rem; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar form { display: inline; margin: 0; }
.topbar button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
.topbar button:hover { text-decoration: underline; }

/* ---------- Kop website ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.badge.lg { width: 56px; height: 56px; font-size: 1.05rem; }
.brand .name { display: block; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.brand .sub { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .masthead .wrap { position: relative; }
}

/* ---------- Hero ---------- */
.hero { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none; }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero.main { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #12528f); }
.hero .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.8); margin-bottom: 12px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 680px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .gold-rule { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted); }
.btn-danger { background: #fff; color: var(--err); border-color: #f1c6c2; }
.btn-sm { padding: 7px 12px; font-size: .84rem; }

/* ---------- Bagian halaman ---------- */
.section { padding: 56px 0; }
.section.wash { background: var(--wash); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.post-card { border-top: 4px solid var(--card-accent, var(--accent)); }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tag, var(--accent)) 12%, white); color: var(--tag, var(--accent)); }

/* Direktori unit di website induk */
.unit { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.unit:hover { border-color: var(--unit); transform: translateY(-2px); }
.unit .badge { background: var(--unit); width: 44px; height: 44px; font-size: .8rem; }
.unit strong { display: block; line-height: 1.3; }
.unit .host { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; word-break: break-all; }
.unit .desc { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.group-title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pengumuman */
.notice-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.notice-list li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { color: var(--ink); text-decoration: none; font-weight: 600; display: block; line-height: 1.4; }
.notice-list a:hover { color: var(--accent); }
.notice-list .meta { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Konten artikel / halaman */
.page-head { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 40px; padding-bottom: 32px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--wash); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding: 4px 16px; color: var(--muted); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-box + .side-box { margin-top: 20px; }
.side-box h3 { font-size: .95rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.side-box li:last-child { border-bottom: 0; }

/* Formulir */
.form { display: grid; gap: 16px; max-width: 640px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.input, textarea.input, select.input { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #cdd5df; border-radius: 8px; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, white); border-color: var(--accent); }
textarea.input { min-height: 140px; resize: vertical; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; min-height: 320px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.error { color: var(--err); font-size: .82rem; margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; }
.alert-ok { background: #e7f5ee; color: var(--ok); border: 1px solid #bfe3cf; }
.alert-err { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; }

/* Paginasi */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pager a, .pager span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.pager .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .disabled { color: #a9b3bf; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b9c7d8; font-size: .9rem; margin-top: 0; }
.footer .wrap { padding-top: 48px; padding-bottom: 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- Login & panel admin ---------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-deep), var(--navy)); padding: 24px; }
.auth-card { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card .brand { margin-bottom: 24px; }

.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: var(--wash); }
.admin-side { background: var(--navy-deep); color: #c9d6e6; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; margin: 0 6px 24px; }
.admin-side .brand .sub { color: #9fb2c8; }
.admin-side h5 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #7f95ae; margin: 20px 8px 6px; }
.admin-side a { display: flex; align-items: center; gap: 8px; color: #dbe5f0; text-decoration: none; padding: 7px 8px; border-radius: 6px; font-size: .88rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-side .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.admin-main { padding: 28px 32px 48px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.5rem; margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-body { padding: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.stat { font-variant-numeric: tabular-nums; font-weight: 700; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: var(--muted); }
.pill.on { background: #e7f5ee; color: var(--ok); }
.pill.warn { background: #fff4e0; color: #a15c00; }
.admin-toggle { display: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-main { padding: 20px 16px 40px; }
  .table-wrap { overflow-x: auto; }
}
.badge.tight { font-size: .74rem; letter-spacing: -.01em; }
.unit .badge.tight { font-size: .66rem; }
@media (min-width: 901px) { .admin { background: linear-gradient(to right, var(--navy-deep) 240px, var(--wash) 240px); } }

/* ---------- Spesimen tanda tangan ---------- */
.spec-notice { background: #fff8eb; border: 1px solid #f3dcae; color: #6b4a07; border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; margin-bottom: 24px; }
.spec-notice a { color: inherit; }
.spec-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.spec-tabs { display: flex; gap: 4px; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.spec-tabs a { padding: 8px 14px; border-radius: 7px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
.spec-tabs a span { font-weight: 600; font-size: .8rem; margin-left: 4px; opacity: .8; }
.spec-tabs a[aria-current="page"] { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.spec-search { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 240px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.spec-images { display: flex; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); user-select: none; -webkit-user-select: none; }
.spec-images figure { margin: 0; flex: 3; background: #fff; display: flex; flex-direction: column; }
.spec-images figure.paraf { flex: 1.3; }
.spec-images img { display: block; width: 100%; height: 140px; object-fit: contain; background: #fff; pointer-events: none; }
.spec-images figcaption { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 10px 8px; }
.spec-locked { flex: 1; height: 164px; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #f7f8fa, #f7f8fa 10px, #f0f2f5 10px, #f0f2f5 20px); color: var(--muted); font-size: .88rem; }
.spec-body { padding: 16px 18px 18px; }
.spec-pos { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.spec-body h3 { margin-bottom: 10px; }
.spec-body dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; margin: 0 0 12px; font-size: .86rem; }
.spec-body dt { color: var(--muted); }
.spec-body dd { margin: 0; font-variant-numeric: tabular-nums; }
.thumb-spec { height: 48px; width: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- Tracer study & alumni ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.kpi-value { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.kpi-label { display: block; font-size: .86rem; color: var(--muted); margin-top: 6px; }
.inline-filter { display: flex; gap: 8px; align-items: center; }
.inline-filter .input { width: auto; padding: 8px 10px; }
.bar { height: 8px; background: var(--wash); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.status-row { padding: 8px 0; }
.status-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; margin-bottom: 6px; }
.mini-bar { position: relative; height: 22px; background: var(--wash); border-radius: 4px; min-width: 110px; overflow: hidden; }
.mini-bar span { position: absolute; inset: 0 auto 0 0; opacity: .28; }
.mini-bar em { position: relative; font-style: normal; font-size: .8rem; font-weight: 700; line-height: 22px; padding-left: 8px; font-variant-numeric: tabular-nums; }
.dot-inline { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.form-wide { max-width: 860px; }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; background: #fff; }
.fs legend { font-weight: 800; padding: 0 6px; font-size: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 8px; }
.choices.row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: .92rem; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 24px; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr; } }
.alum-head { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.detail { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 0; font-size: .94rem; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; } .detail dd { margin-bottom: 8px; } }
