/* Master template Fakultas Teknik Unram.
   Struktur dan ukuran komponen mengikuti FEB UGM (ugm-theme-v2), warna Unram.
   Token di :root nanti dipindah ke theme.json. */

@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/albert-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/albert-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Warna: diambil dari palet tema (Tampilan > Editor > Gaya). Nilai setelah koma = cadangan untuk prototipe statis. */
  --navy: var(--wp--preset--color--primer, #0e3051);
  --navy-deep: var(--wp--preset--color--primer-gelap, #0a2440);
  --gold: var(--wp--preset--color--aksen, #ffcc00);
  --gold-soft: var(--wp--preset--color--aksen-pucat, #fff6d1);
  --gold-ink: var(--wp--preset--color--aksen-tinta, #6b5200);
  --paper: var(--wp--preset--color--latar, #ffffff);
  --mist: var(--wp--preset--color--kabut, #f5f7fa);
  --text: var(--wp--preset--color--teks, #1d2733);
  --muted: var(--wp--preset--color--teks-redup, #55606e);
  /* Turunan: dihitung dari warna dasar, jadi ikut berubah saat palet diganti. */
  --navy-hover: color-mix(in srgb, var(--navy) 80%, #fff);
  --gold-hover: color-mix(in srgb, var(--gold) 72%, #fff);
  --line: color-mix(in srgb, var(--navy) 13%, #fff);
  --line-strong: color-mix(in srgb, var(--navy) 32%, #fff);
  --on-navy: #ffffff;
  --on-navy-muted: color-mix(in srgb, #fff 74%, var(--navy));
  --ph-1: color-mix(in srgb, var(--gold) 30%, #fff);
  --ph-2: color-mix(in srgb, var(--gold) 14%, #fff);
  --shade: color-mix(in srgb, var(--navy-deep) 100%, transparent);

  /* Huruf: keluarga dipilih lewat preset tipografi; ukuran mengikuti skala 8 langkah dalam rem. */
  --font: var(--wp--custom--font-utama, "Albert Sans"), Helvetica, Arial, sans-serif;
  --fs-xs: var(--wp--preset--font-size--xs, .8125rem);
  --fs-sm: var(--wp--preset--font-size--sm, .875rem);
  --fs-base: var(--wp--preset--font-size--base, 1rem);
  --fs-md: var(--wp--preset--font-size--md, 1.125rem);
  --fs-lg: var(--wp--preset--font-size--lg, 1.375rem);
  --fs-xl: var(--wp--preset--font-size--xl, clamp(1.5rem, 1.1rem + 1.4vw, 2rem));
  --fs-2xl: var(--wp--preset--font-size--xxl, clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem));
  --fs-display: var(--wp--preset--font-size--display, clamp(2.25rem, 1.4rem + 3.6vw, 3.625rem));
  --label-track: .06em;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 6px 18px color-mix(in srgb, var(--navy) 12%, transparent);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
/* Spesifisitas nol: di WordPress, keluarga huruf dari preset tipografi (Gaya) yang berlaku. */
:where(body) {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.navy :focus-visible, .on-navy :focus-visible { outline-color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.ico { width: 18px; height: 18px; flex: none; stroke-width: 1.75; }

/* Placeholder isi yang belum ada datanya */
.ph { background: repeating-linear-gradient(-45deg, var(--ph-1) 0 8px, var(--ph-2) 8px 16px); color: var(--gold-ink); padding: 0 .3em; border-radius: 2px; font-weight: 600; }

/* ---------- Utility bar (bar oranye FEB UGM, di sini kuning Unram) ---------- */
.topbar { background: var(--gold); color: var(--navy); font-size: var(--fs-xs); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar a { color: var(--navy); text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar .sep { width: 1px; height: 14px; background: color-mix(in srgb, var(--navy) 35%, transparent); }
.topbar form { display: flex; align-items: center; background: var(--paper); border-radius: 3px; height: 26px; padding: 0 4px 0 10px; }
.topbar input { border: 0; outline: 0; font: inherit; font-size: var(--fs-xs); width: 150px; background: transparent; color: var(--text); }
.topbar input::placeholder { color: var(--muted); }
.topbar button { border: 0; background: none; color: var(--navy); cursor: pointer; display: grid; place-items: center; padding: 2px; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 1px 6px; border-radius: 2px; }
.lang a[aria-current] { background: var(--navy); color: var(--gold); }
.topbar .a11y-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: var(--fs-xs); font-weight: 500; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 16px color-mix(in srgb, var(--navy) 12%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand span { display: grid; line-height: 1.15; white-space: nowrap; }
.brand small { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.brand strong { font-size: var(--fs-md); letter-spacing: .02em; text-transform: uppercase; font-weight: 800; }
.brand em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }

.mainnav { margin-left: auto; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mainnav > ul > li { position: relative; }
/* Menu utama. Status: hover dan fokus = garis primer tumbuh dari tengah; terbuka = garis primer penuh;
   halaman aktif (atau induk halaman aktif) = garis aksen 3px. Panel menempel di tepi bawah header. */
.mainnav > ul > li > a, .mainnav > ul > li > button {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  font: inherit; font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--label-track); text-transform: uppercase; line-height: 1.2;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.mainnav > ul > li > a::after, .mainnav > ul > li > button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--navy); transform: scaleX(0); transition: transform .25s var(--ease), background-color .2s;
}
.mainnav > ul > li > a:hover, .mainnav > ul > li > button:hover { color: var(--navy-hover); }
.mainnav > ul > li > a:hover::after, .mainnav > ul > li > button:hover::after,
.mainnav > ul > li > a:focus-visible::after, .mainnav > ul > li > button:focus-visible::after,
.mainnav li.open > button::after { transform: scaleX(1); }
.mainnav > ul > li > a[aria-current="page"]::after, .mainnav li.is-current > button::after { transform: scaleX(1); height: 3px; background: var(--gold); }
.mainnav > ul > li > a.btn-daftar { padding: 10px 18px; border-radius: var(--radius); background: var(--gold); color: var(--navy); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.mainnav > ul > li > a.btn-daftar::after { display: none; }
.mainnav > ul > li > a.btn-daftar:hover { background: var(--gold-hover); color: var(--navy); }
.mainnav .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.mainnav li.open .caret { transform: rotate(180deg); }
.btn-daftar { margin-left: 8px; }

/* Panel dropdown dan mega menu */
.dropdown, .mega {
  position: absolute; top: calc(100% + 18px); z-index: 60;
  background: var(--paper); box-shadow: 0 12px 28px color-mix(in srgb, var(--navy) 16%, transparent); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
/* Jembatan tak terlihat di atas panel: kursor tetap "di dalam" menu saat bergerak dari tombol ke panel. */
.dropdown::before, .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
li.open > .dropdown, li.open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown { left: 0; min-width: 260px; padding: 8px 0; list-style: none; margin: 0; }
.dropdown a, .mega a {
  display: block; padding: 10px 20px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4;
  color: var(--text); text-decoration: none; transition: background-color .15s, color .15s;
}
/* Hover: tint primer pucat. Aktif: aksen pucat + tebal. Keduanya sengaja berbeda supaya tidak tertukar. */
.dropdown a:hover, .dropdown a:focus-visible, .mega a:hover, .mega a:focus-visible { background: color-mix(in srgb, var(--navy) 7%, var(--paper)); color: var(--navy); }
.dropdown a[aria-current="page"], .mega a[aria-current="page"] { font-weight: 700; color: var(--navy); background: var(--gold-soft); }
.mega { left: 50%; width: min(820px, 92vw); margin-left: -410px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.mega section { padding: 20px 12px; }
.mega section + section { border-left: 1px solid var(--line); }
.mega h3 { padding: 0 20px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.mega a small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; color: var(--navy); cursor: pointer; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius);
  font: inherit; font-size: var(--fs-base); font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: var(--paper); color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: var(--fs-sm); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--navy); text-decoration: none; }
.more:hover { gap: 9px; }
.more .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 15%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 55%, transparent) 45%, color-mix(in srgb, var(--navy-deep) 92%, transparent) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.hero h1 { color: #fff; font-size: var(--fs-display); font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.hero p { font-size: var(--fs-md); max-width: 46ch; margin: 18px 0 28px; color: color-mix(in srgb, #fff 90%, var(--navy)); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 3px; font-size: var(--fs-xs); font-weight: 700; background: var(--gold); color: var(--navy); }
.badge.light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.photo-credit { position: absolute; right: 12px; top: 10px; z-index: 1; font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }
.photo-credit a { color: inherit; }
.hero .reveal { animation: rise .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

/* Pita misi (pita peach FEB UGM) */
.mission { background: var(--gold-soft); }
.mission .wrap { padding: 34px 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.mission p { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--navy); line-height: 1.4; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.mission .facts-src { margin: 10px 0 0; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); line-height: 1.5; }
.facts div { display: grid; }
.facts dt { font-size: var(--fs-xs); color: var(--gold-ink); font-weight: 600; order: 2; }
.facts dd { margin: 0; font-size: var(--fs-xl); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--mist); }
.section.gold { background: var(--gold-soft); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: var(--fs-xl); font-weight: 800; }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.sec-head p { color: var(--muted); max-width: 60ch; margin: 14px auto 0; }
.sec-head.left { text-align: left; }
.sec-head.left h2::after { margin-left: 0; }
.sec-foot { margin-top: 28px; text-align: right; }

/* Tab jenjang */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: var(--fs-base); font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--navy); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover { border-color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs button span { font-weight: 500; opacity: .7; margin-left: 4px; }
[role="tabpanel"][hidden] { display: none; }

/* Kartu program (kartu foto FEB UGM) */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program {
  display: flex; flex-direction: column; background: var(--paper); text-decoration: none; color: var(--text);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--navy) 8%, transparent), 0 6px 18px color-mix(in srgb, var(--navy) 6%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.program:hover { transform: translateY(-4px); box-shadow: 0 2px 4px color-mix(in srgb, var(--navy) 8%, transparent), 0 14px 30px color-mix(in srgb, var(--navy) 14%, transparent); color: var(--text); }
.program figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.program figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program:hover figure img { transform: scale(1.05); }
.program .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.program h3 { font-size: var(--fs-md); font-weight: 800; }
.program .degree { font-size: var(--fs-sm); color: var(--muted); }
.program .acc { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: 3px; background: var(--mist); color: var(--navy); }
.chip.top { background: var(--gold); }
.chip.ph, .ph-slot { background: repeating-linear-gradient(-45deg, var(--ph-1) 0 8px, var(--ph-2) 8px 16px); color: var(--gold-ink); }
.ph-slot { display: grid; place-items: center; text-align: center; font-size: var(--fs-xs); font-weight: 700; padding: 8px; }
.program figure.ph-slot { background: repeating-linear-gradient(-45deg, var(--ph-1) 0 8px, var(--ph-2) 8px 16px); }

/* Motif Sasak (dari latar unram.ac.id): belah ketupat bertingkat */
.motif { position: relative; isolation: isolate; background-color: var(--navy); }
/* Motif dibentuk dengan mask, diwarnai token aksen: ikut berubah bila palet diganti. */
.motif::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--gold); opacity: .15;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3Crect x='25' y='25' width='6' height='6' transform='rotate(45 28 28)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3Crect x='25' y='25' width='6' height='6' transform='rotate(45 28 28)'/%3E%3C/svg%3E");
  -webkit-mask-size: 56px 56px; mask-size: 56px 56px;
}

/* Sambutan */
.welcome { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; background: var(--navy); color: var(--on-navy-muted); display: grid; place-items: center; text-align: center; font-size: var(--fs-sm); padding: 20px; }
.portrait > div { display: grid; justify-items: center; gap: 10px; }
.portrait .ico { width: 56px; height: 56px; stroke-width: 1.25; color: var(--gold); }
.welcome blockquote { margin: 0 0 18px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; color: var(--navy); }
.welcome .who { font-weight: 700; color: var(--navy); margin: 0; }
.welcome .role { color: var(--muted); margin: 0 0 20px; }

/* Berita (pola berita FEB UGM: 1 besar kiri, 3 daftar kanan) */
.news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; }
.news-main a { text-decoration: none; color: inherit; }
.news-main figure { margin: 0 0 16px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 5px solid var(--gold); }
.news-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-main a:hover img { transform: scale(1.04); }
.news-main h3 { font-size: var(--fs-xl); font-weight: 800; }
.news-main a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--muted); margin: 6px 0 8px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .ico { width: 14px; height: 14px; }
.news-list { display: grid; gap: 22px; align-content: start; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; text-decoration: none; color: inherit; }
.news-item figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.news-item img { width: 100%; height: 100%; object-fit: cover; }
.news-item h4 { font-size: var(--fs-base); font-weight: 700; }
.news-item .meta { margin: 4px 0 6px; }
.news-item:hover h4 { text-decoration: underline; }
.news-item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-type { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); }
.thumb-type .ico { width: 34px; height: 34px; stroke-width: 1.4; }

/* Agenda */
.agenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--paper); padding: 16px; text-decoration: none; color: inherit; transition: box-shadow .25s var(--ease); }
.event:hover { box-shadow: var(--shadow); }
.event time { display: grid; place-items: center; align-content: center; background: var(--navy); color: #fff; line-height: 1; padding: 10px 0; }
.event time b { font-size: var(--fs-lg); }
.event time span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-top: 4px; }
.event h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.event p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* Akreditasi */
.acc-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 56px; }
.acc-logos li { display: grid; justify-items: center; align-content: start; gap: 12px; width: 200px; text-align: center; }
.acc-logos img { height: 64px; width: 150px; object-fit: contain; }
.acc-logos .ph-slot { height: 64px; }
.acc-logos .ph-slot { width: 150px; }
.acc-logos span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

/* Cerita */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story { background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-top: 4px solid var(--navy); transition: border-color .25s; }
.story:hover { border-top-color: var(--gold); }
.story h3 { font-size: var(--fs-md); font-weight: 800; }
.story p { color: var(--muted); font-size: var(--fs-base); margin: 0; }
.story .meta { margin: 0; }
.story .more { margin-top: auto; }

/* Tautan (ubin navy FEB UGM) */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.links a {
  display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; min-height: 140px; padding: 20px;
  color: #fff; text-decoration: none; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s, transform .3s var(--ease);
}
.links a:hover { transform: translateY(-3px); background-color: var(--navy-hover); }
.links .ico { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.5; }

/* Pita CTA */
.cta { color: #fff; }
.cta .wrap { padding: 56px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: var(--fs-xl); font-weight: 800; }
.cta p { color: var(--on-navy-muted); margin: 8px 0 0; max-width: 52ch; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Fakta singkat prodi */
.quickfacts { background: var(--paper); position: relative; z-index: 2; margin-top: -48px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(6, 1fr); }
.quickfacts div { padding: 20px 18px; border-right: 1px solid var(--line); }
.quickfacts div:last-child { border-right: 0; }
.quickfacts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.quickfacts dd { margin: 0; font-size: var(--fs-md); font-weight: 800; color: var(--navy); line-height: 1.25; }
.quickfacts dd small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }

/* Profil lulusan */
.roles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.roles li { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--navy); }
.roles .ico { color: var(--gold-ink); }
.roles { padding: 0; }

/* CPL */
.cpl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 4px solid var(--navy); background: var(--paper); }
.cpl section { padding: 26px 26px 10px; }
.cpl section + section { border-left: 1px solid var(--line); }
.cpl h3 { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.cpl h4 { font-size: var(--fs-base); font-weight: 800; margin-bottom: 4px; }
.cpl p { font-size: var(--fs-base); color: var(--muted); }

/* Lab */
.labs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lab { padding: 28px; color: #fff; min-height: 200px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .3s var(--ease); }
.lab:hover { transform: translateY(-3px); color: #fff; }
.lab .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; }
.lab h3 { color: #fff; font-size: var(--fs-md); font-weight: 800; }
.lab p { color: var(--on-navy-muted); margin: 0; font-size: var(--fs-base); }
.lab .more { color: var(--gold); margin-top: auto; }

/* Dosen */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { display: flex; flex-direction: column; text-align: left; text-decoration: none; color: inherit; }
.person .pic { aspect-ratio: 4 / 5; background: var(--mist); display: grid; place-items: center; color: var(--line-strong); margin-bottom: 12px; border-bottom: 4px solid var(--gold); overflow: hidden; }
.section.tint .person .pic { background: var(--paper); }
.person .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.person:hover .pic img { transform: scale(1.04); }
.person .pic .ico { width: 54px; height: 54px; stroke-width: 1.1; }
.person h3 { font-size: var(--fs-base); font-weight: 800; line-height: 1.3; }
.person:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.person p { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 0; }
.person .chip { align-self: flex-start; margin-top: 8px; }

/* Halaman daftar dosen */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 40px 0 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 24px 0 8px; }
.searchbox { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.searchbox:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); }
.searchbox input { flex: 1; border: 0; outline: 0; font: inherit; font-size: var(--fs-base); background: transparent; color: var(--text); min-width: 0; }
.searchbox .ico { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: var(--fs-sm); font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: var(--paper); color: var(--navy); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button span { font-weight: 500; opacity: .7; margin-left: 3px; }
.result-count { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.person .jabatan { color: var(--navy); font-weight: 700; }
div.person:hover h3 { text-decoration: none; }
.group h2 + .people { margin-top: 18px; }
.unit-dosen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.unit-dosen a { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 12px; min-height: 64px; padding: 14px 16px; background: var(--mist); border-radius: var(--radius); color: var(--navy); text-decoration: none; transition: background-color .2s var(--ease); }
.unit-dosen a:hover { background: color-mix(in srgb, var(--navy) 9%, var(--mist)); }
.unit-dosen .chip { grid-row: 1 / 3; align-self: center; }
.unit-dosen .unit-nama { font-weight: 700; line-height: 1.3; }
.unit-dosen .unit-meta { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); }
.unit-dosen .ico { grid-column: 3; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--gold-ink); }
.group { padding-top: 40px; }
.group h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 6px; }
.group > p { color: var(--muted); font-size: var(--fs-base); margin-bottom: 22px; }
.group[hidden], .person[hidden] { display: none; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; color: var(--line-strong); margin: 0 auto 10px; }

/* Halaman profil dosen */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 20px 56px; align-items: start; padding: 28px 0 72px; }
.profile-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.profile-aside .pic { aspect-ratio: 4 / 5; background: var(--mist); border-bottom: 5px solid var(--gold); overflow: hidden; }
.profile-aside .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.contact-list a, .contact-list span.row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: var(--fs-base); font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { background: var(--mist); }
.contact-list .ico { color: var(--gold-ink); }
.contact-list small { margin-left: auto; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-main h1 { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; }
.profile-main .role { font-size: var(--fs-md); color: var(--muted); margin: 10px 0 0; }
.profile-main .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.profile-main .tags .chip { font-size: var(--fs-xs); padding: 5px 10px; }
.block { padding: 32px 0 0; margin-top: 32px; border-top: 1px solid var(--line); }
.block h2 { font-size: var(--fs-md); font-weight: 800; margin-bottom: 14px; }
.block p { color: var(--muted); max-width: 68ch; }
.course-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.course-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--mist); font-weight: 600; color: var(--navy); }
.course-list .ico { color: var(--gold-ink); }
.ph-block { padding: 18px; font-size: var(--fs-base); font-weight: 600; text-align: left; place-items: start; line-height: 1.5; }
.profile-back { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.profile-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-nav a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: var(--mist); border-radius: var(--radius); color: var(--navy); font-weight: 700; line-height: 1.35; text-decoration: none; transition: background-color .2s var(--ease); }
.profile-nav a:hover { background: color-mix(in srgb, var(--navy) 9%, var(--mist)); }
.profile-nav a .ico { flex: none; width: 20px; height: 20px; color: var(--gold-ink); transition: transform .2s var(--ease); }
.profile-nav .pager-prev:hover .ico { transform: translateX(-3px); }
.profile-nav .pager-next:hover .ico { transform: translateX(3px); }
.profile-nav small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.profile-nav .pager-next { flex-direction: row-reverse; text-align: right; }
.profile-nav p { align-self: center; margin: 0; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Jalur masuk */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.path { background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px color-mix(in srgb, var(--navy) 8%, transparent); }
.path h3 { font-size: var(--fs-md); font-weight: 800; }
.path p { font-size: var(--fs-base); color: var(--muted); margin: 0; }
.path .more { margin-top: auto; padding-top: 10px; }

/* Jurnal */
.journals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journal { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; text-decoration: none; color: inherit; }
.journal .cover.ph-slot { background: repeating-linear-gradient(-45deg, var(--ph-1) 0 8px, var(--ph-2) 8px 16px); color: var(--gold-ink); box-shadow: none; }
.journal .cover { aspect-ratio: 3 / 4; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .04em; text-align: center; padding: 8px; box-shadow: 4px 6px 14px color-mix(in srgb, var(--navy) 20%, transparent); transition: transform .3s var(--ease); }
.journal:hover .cover { transform: translateY(-3px) rotate(-1.5deg); }
.journal h3 { font-size: var(--fs-md); font-weight: 800; }
.journal p { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-size: var(--fs-md); font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .3s var(--ease); color: var(--gold-ink); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 4px 18px; margin: 0; color: var(--muted); max-width: 70ch; }

/* Halaman dalam: isi utama + navigasi saudara di sisi kanan */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding: 8px 0 80px; }
.page-body { max-width: 760px; }
.page-body .block.first { border-top: 0; margin-top: 0; }
.page-body .lead { font-size: var(--fs-md); font-weight: 600; color: var(--navy); line-height: 1.5; }
.numbered { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--text); max-width: 68ch; }
.numbered li::marker { color: var(--gold-ink); font-weight: 800; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.spec dd { margin: 0; color: var(--text); }
.src { font-size: var(--fs-sm); margin-top: 12px; }
.acc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.acc-cards article { background: var(--mist); padding: 24px; display: grid; gap: 6px; align-content: start; }
.acc-cards img { height: 64px; width: 150px; object-fit: contain; object-position: left center; margin-bottom: 10px; }
.acc-cards .ph-slot { margin-bottom: 10px; }
.acc-cards h3 { font-size: var(--fs-lg); font-weight: 800; }
.acc-cards p { margin: 0; color: var(--muted); font-size: var(--fs-base); }
.sibling-nav { position: sticky; top: 100px; margin-top: 32px; border-top: 4px solid var(--navy); background: var(--paper); }
.sibling-nav h2 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 0 8px; }
.sibling-nav ul { list-style: none; margin: 0; padding: 0; }
.sibling-nav a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); text-decoration: none; transition: background .2s; }
.sibling-nav a:hover { background: var(--mist); }
.sibling-nav a[aria-current="page"] { background: var(--gold-soft); font-weight: 800; }

/* Kurikulum: ringkasan, kolom semester, mata kuliah pilihan, tabel */
.mk-facts { margin: 0 0 32px; box-shadow: none; border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mk-tabs { justify-content: flex-start; }
@media (max-width: 600px) { .tabs.mk-tabs { margin-inline: 0; padding: 0; flex-wrap: wrap; } }
.mk-semesters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.mk-sem { background: var(--paper); border-top: 4px solid var(--navy); box-shadow: 0 1px 2px color-mix(in srgb, var(--navy) 8%, transparent); }
.mk-sem header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.mk-sem h3 { font-size: var(--fs-md); font-weight: 800; }
.mk-sem header span { font-size: var(--fs-sm); font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.mk-sem ul { list-style: none; margin: 0; padding: 4px 0; }
.mk-sem li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; }
.mk-sem li + li { border-top: 1px solid var(--line); }
.mk-sem li a { flex: 1; display: grid; gap: 2px; text-decoration: none; color: var(--text); }
.mk-sem li a:hover .mk-name { text-decoration: underline; color: var(--navy); }
.mk-name { font-weight: 700; color: var(--navy); line-height: 1.35; }
.mk-meta { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; display: flex; gap: 8px; }
.mk-code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mk-meta .mk-code::after { content: "·"; margin-left: 8px; color: var(--line-strong); }
.mk-sem .chip { flex: none; margin-top: 2px; }
.mk-sem .mk-slot a { opacity: .85; }
.mk-sem .mk-slot .mk-name { font-weight: 600; color: var(--muted); font-style: normal; }
.mk-sem .mk-slot { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--navy) 3%, transparent) 8px 16px); }
.mk-pilihan { margin-top: 48px; }
.mk-pilihan h3 { font-size: var(--fs-lg); font-weight: 800; }
.mk-pilihan > p { color: var(--muted); margin: 6px 0 14px; max-width: 68ch; }
.mk-cpl { margin-bottom: 18px; }
.mk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mk-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.mk-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.mk-card[hidden] { display: none; }
.mk-card h4 { font-size: var(--fs-base); font-weight: 800; line-height: 1.35; }
.mk-card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-card .acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.mk-search { margin: 4px 0 18px; }
.mk-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.mk-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.mk-table th, .mk-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-table thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--mist); position: sticky; top: 0; }
.mk-table tbody th { font-weight: 700; }
.mk-table tbody th a { color: var(--navy); text-decoration: none; }
.mk-table tbody th a:hover { text-decoration: underline; }
.mk-table tbody tr:hover { background: var(--mist); }
.mk-table tr[hidden] { display: none; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mk-table td.mk-code { color: var(--muted); white-space: nowrap; }

/* Kalender akademik: panel navy "sekarang" dengan hitung mundur, lalu linimasa per periode memakai kotak tanggal agenda. */
.kal-aksi { display: flex; flex-wrap: wrap; gap: 10px; }
.kal-tambah { position: relative; }
.kal-tambah > summary { list-style: none; cursor: pointer; }
.kal-tambah > summary::-webkit-details-marker { display: none; }
.kal-tambah-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 32px)); padding: 6px; background: var(--paper); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.kal-tambah-menu p { margin: 6px 10px 8px; font-size: var(--fs-xs); color: var(--muted); }
.kal-tambah-list { list-style: none; margin: 0; padding: 0; }
.kal-tambah-menu li { margin: 0; }
.kal-tambah-menu a { display: block; padding: 10px; color: var(--navy); text-decoration: none; }
.kal-tambah-menu a:hover { background: color-mix(in srgb, var(--navy) 7%, var(--paper)); }
.kal-tambah-menu b { display: block; font-size: var(--fs-sm); }
.kal-tambah-menu span { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.kal-kini { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 44px; margin-top: 24px; padding: 28px; color: var(--on-navy); }
.page-body .kal-kini h2 { margin: 0 0 16px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.kal-kini ul, .kal-kini ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.kal-kini li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: 0; }
.kal-kini li b { display: block; font-weight: 700; color: var(--on-navy); line-height: 1.35; }
.kal-kini li span { font-size: var(--fs-sm); color: var(--on-navy-muted); }
.kal-sedang .ico { width: 24px; height: 24px; margin-top: 1px; color: var(--gold); }
.kal-kini .kal-hitung { display: grid; place-items: center; min-width: 68px; padding: 6px 4px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-size: var(--fs-xs); line-height: 1.15; text-align: center; color: var(--on-navy-muted); }
.kal-kini .kal-hitung b { font-size: var(--fs-lg); font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.kal-tabs { justify-content: flex-start; margin: 36px 0 0; }
.page-body .kal-bulan { margin: 28px 0 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kal-list li { margin: 0; }
.kal-item { border: 1px solid var(--line); }
.kal-item h4 { margin: 0 0 2px; color: var(--navy); }
.kal-item p { margin: 0; }
.kal-item .kal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.kal-meta .ico { width: 16px; height: 16px; color: var(--gold-ink); }
.kal-meta .chip { margin-left: 4px; }
.kal-item.is-sedang { border: 2px solid var(--gold); padding: 15px; }
.kal-item.is-lewat time { background: var(--mist); color: var(--muted); }
.kal-item.is-lewat time span, .kal-item.is-lewat h4 { color: var(--muted); }
.kal-selesai { font-weight: 600; }
.kal-item .kal-gcal { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-weight: 700; color: var(--navy); text-decoration: none; }
.kal-gcal .ico { width: 14px; height: 14px; color: var(--navy); }
.kal-gcal:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.kal-lewat { margin-top: 24px; }
.kal-lewat > summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; transition: border-color .2s; }
.kal-lewat > summary::-webkit-details-marker { display: none; }
.kal-lewat > summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; }
.kal-lewat[open] > summary::before { transform: rotate(45deg); }
.kal-lewat > summary:hover { border-color: var(--navy); }
@media (max-width: 600px) {
  .kal-kini { padding: 22px 18px; }
}

/* Berkas: cari di atas, daftar per kelompok tahap studi. Satu baris satu tautan. */
.berkas-cari { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.berkas-jumlah { margin: 0; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.page-body .berkas-grup { margin-top: 36px; }
.page-body .berkas-grup h2 { margin: 0; }
.berkas-grup > p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.berkas-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.page-body .berkas-list { padding-left: 0; }
.berkas-list li { margin: 0; }
.berkas-list li[hidden], .berkas-grup[hidden] { display: none; }
.berkas-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 2px 12px; padding: 13px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background .2s; }
.berkas-item > .ico:first-child { color: var(--gold-ink); }
.berkas-item > .ico:last-child { color: var(--navy); }
.berkas-nama { font-weight: 600; color: var(--navy); }
.berkas-meta { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
a.berkas-item:hover { background: var(--mist); }
a.berkas-item:hover .berkas-nama { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .berkas-item { grid-template-columns: auto 1fr auto; align-items: start; }
  .berkas-meta { grid-column: 2; grid-row: 2; }
  .berkas-item > .ico:last-child { grid-column: 3; grid-row: 1; }
}

/* Statistik: angka utama, grafik kolom satu seri (HTML dan CSS), tabel rinci */
.stat-facts { margin-bottom: 0; }
.stat-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 32px 0 48px; }
.stat-chart { margin: 0; padding: 24px 24px 20px; background: var(--paper); border: 1px solid var(--line); }
.stat-chart h2 { margin: 0; font-size: var(--fs-md); font-weight: 800; color: var(--navy); }
.stat-chart > p { margin: 4px 0 0; max-width: 46ch; font-size: var(--fs-sm); color: var(--muted); }
.chart { position: relative; height: 220px; margin: 40px 0 48px 28px; }
.chart ol { list-style: none; margin: 0; padding: 0; }
.chart .ticks { position: absolute; inset: 0; }
.chart .ticks li { position: absolute; left: 0; right: 0; bottom: var(--y); border-top: 1px solid var(--line); }
.chart .ticks li:first-child { border-top-color: var(--line-strong); }
.chart .ticks span { position: absolute; right: calc(100% + 8px); top: -.65em; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart .bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.chart .bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
.chart .fill { flex-shrink: 0; width: min(24px, 60%); height: var(--h); background: var(--navy); border-radius: 4px 4px 0 0; transition: background .2s; }
.chart .val { display: none; position: absolute; bottom: calc(var(--h) + 4px); font-size: var(--fs-sm); font-weight: 800; color: var(--navy); }
.chart .is-awal .val, .chart .is-akhir .val { display: block; }
.chart .x { position: absolute; top: calc(100% + 8px); font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); text-align: center; white-space: nowrap; }
.chart .tip { position: absolute; bottom: calc(var(--h) + 30px); z-index: 3; padding: 6px 10px; background: var(--paper); box-shadow: var(--shadow); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chart .tip b { font-size: var(--fs-base); color: var(--navy); }
.chart .tip small { display: block; font-size: var(--fs-xs); }
.chart .is-awal .tip { left: 0; }
.chart .is-akhir .tip { right: 0; }
.chart .bar:hover .fill, .chart .bar:focus-visible .fill { background: var(--navy-hover); }
.chart .bar:hover .tip, .chart .bar:focus-visible .tip { opacity: 1; }
.chart .bar:focus-visible { outline-offset: 4px; }
.stat-table-head { margin: 0 0 16px; font-size: var(--fs-xl); font-weight: 800; color: var(--navy); }
.stat-table b { color: var(--navy); }
@media (max-width: 960px) {
  .stat-charts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-chart { padding: 20px 16px 16px; }
  .chart { height: 180px; margin-left: 24px; }
  .chart .yy { display: none; }
  /* Tabel statistik tetap berbentuk tabel di HP (bukan kartu seperti daftar mata kuliah): digeser ke samping, kolom Semester menempel. */
  .mk-table.stat-table { display: table; font-size: var(--fs-sm); }
  .mk-table.stat-table thead { display: table-header-group; }
  .mk-table.stat-table tbody { display: table-row-group; }
  .mk-table.stat-table tr { display: table-row; padding: 0; }
  .mk-table.stat-table th, .mk-table.stat-table td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .mk-table.stat-table td:nth-child(n+3) { font-size: inherit; color: inherit; text-align: right; }
  .mk-table.stat-table tr > :first-child { position: sticky; left: 0; white-space: nowrap; background: var(--paper); }
  .mk-table.stat-table thead tr > :first-child { background: var(--mist); }
}
@media (prefers-reduced-motion: reduce) {
  .chart .fill, .chart .tip { transition: none; }
}
.mk-table .m-only { display: none; }

/* Detail mata kuliah */
.mk-wrap { padding-bottom: 72px; }
.mk-detail .profile-head { padding: 12px 0 20px; }
.mk-detail h1 { font-size: var(--fs-2xl); font-weight: 800; max-width: 26ch; }
.mk-detail .mk-facts { margin-bottom: 8px; }
.mk-side { position: sticky; top: 100px; display: grid; gap: 16px; align-content: start; padding-top: 32px; }
.mk-side h2 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-dosen { display: grid; gap: 16px; }
.mk-dosen .person { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; align-items: start; }
.mk-dosen .person .pic { grid-row: span 3; margin: 0; border-bottom-width: 3px; }
.mk-dosen .person h3 { font-size: var(--fs-base); }
.mk-dosen .person .chip { display: none; }
.mk-side .btn { justify-content: center; }
.cpl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cpl-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; background: var(--mist); color: var(--text); }
.cpl-list b { color: var(--navy); font-variant-numeric: tabular-nums; }
.cpl-list p { margin: 0; }
.cpl-list .cpl-mk { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.cpl-list + h3, h3 + .cpl-list { margin-top: 16px; }
.mk-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mk-rel h3 { font-size: var(--fs-base); font-weight: 800; margin-bottom: 8px; }
.mk-rel ul { margin: 0; padding-left: 18px; }
.mk-rel p { margin: 0; color: var(--muted); }
.course-list.is-linked a { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; width: 100%; }
.course-list.is-linked a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { color: var(--on-navy-muted); font-size: var(--fs-base); }
.site-footer .wrap { padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small, .site-footer .brand em { color: var(--on-navy-muted); }
.contact li { display: flex; gap: 10px; }
.contact .ico { color: var(--gold); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); }
.foot-bottom a { color: var(--on-navy-muted); }

/* Tombol WA melayang (BINUS) */
.float-help { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; box-shadow: 0 8px 22px color-mix(in srgb, var(--navy-deep) 30%, transparent); }
.float-help:hover { background: var(--navy-hover); color: #fff; }
.float-help .ico { color: var(--gold); }

/* Mode aksesibilitas */
body.big-text { font-size: var(--fs-md); }
body.high-contrast { --muted: color-mix(in srgb, var(--text) 88%, #fff); --line: var(--line-strong); }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .mainnav > ul > li > a, .mainnav > ul > li > button { padding: 10px 8px; font-size: var(--fs-xs); }
  .quickfacts { grid-template-columns: repeat(3, 1fr); }
  .quickfacts div:nth-child(3) { border-right: 0; }
  .quickfacts div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .topbar nav.audience, .topbar .sep, .topbar .portal-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { position: fixed; inset: 114px 0 0 0; background: var(--paper); overflow-y: auto; padding: 8px 16px 32px; transform: translateX(100%); transition: transform .35s var(--ease); margin: 0; }
  .mainnav.open { transform: none; }
  .mainnav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav > ul > li { border-bottom: 1px solid var(--line); }
  .mainnav > ul > li > a, .mainnav > ul > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: var(--fs-sm); }
  .mainnav > ul > li > a::after, .mainnav > ul > li > button::after { display: none; }
  .mainnav li.is-current > button, .mainnav > ul > li > a[aria-current="page"] { color: var(--gold-ink); }
  .dropdown::before, .mega::before { display: none; }
  .mainnav > ul > li > a.btn-daftar { justify-content: center; }
  .dropdown, .mega { position: static; width: auto; margin: 0; box-shadow: none; border-top: 0; display: none; opacity: 1; visibility: visible; transform: none; transition: none; padding: 0 0 12px; }
  li.open > .dropdown, li.open > .mega { display: block; }
  .mega section { padding: 8px 4px; }
  .mega section + section { border-left: 0; }
  .btn-daftar { margin: 16px 0 0; justify-content: center; }
  .mission .wrap, .welcome, .news, .foot-grid { grid-template-columns: 1fr; }
  .welcome .portrait { max-width: 240px; }
  .links, .people, .paths, .programs, .unit-dosen { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .mk-side { position: static; padding-top: 0; }
  .sibling-nav { position: static; margin-top: 0; }
  /* Mobile: foto, nama, kontak, lalu isi. Aside dan article dilebur jadi satu urutan. */
  .profile { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .profile-aside, .profile-main { display: contents; }
  .profile-aside .pic { order: 1; width: 160px; }
  .profile-head { order: 2; }
  .contact-list { order: 3; }
  .profile-body { order: 4; }
  .profile-nav { order: 5; margin-top: 16px; }
  .profile-body > .block:first-child { margin-top: 0; }
  .agenda { grid-template-columns: 1fr; }
  .stories, .cpl, .labs, .journals { grid-template-columns: 1fr; }
  .cpl section + section { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .topbar form { display: none; }
  .unit-dosen { grid-template-columns: 1fr; }
  .profile-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
  .profile-nav p { grid-column: 1 / -1; order: -1; text-align: center; }
  .profile-nav a { padding: 12px; gap: 8px; font-size: var(--fs-sm); }
  .brand img { width: 42px; }
  .brand strong { font-size: var(--fs-base); }
  .hero { min-height: 520px; }
  .hero p { font-size: var(--fs-md); }
  .section { padding: 56px 0; }
  .facts dd { font-size: var(--fs-lg); }
  .news-item { grid-template-columns: 110px 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; }
  .tabs button { flex: none; }
  .quickfacts { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .quickfacts.mk-facts { margin-top: 0; }
  .quickfacts div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .quickfacts div:nth-child(2n) { border-right: 0; }
  .quickfacts div:nth-child(3) { border-right: 1px solid var(--line); }
  .quickfacts div:nth-last-child(-n+2) { border-bottom: 0; }
  .float-help span { display: none; }
  .float-help { padding: 14px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .course-list { grid-template-columns: 1fr; }
  .searchbox { max-width: none; }
  .paths, .programs, .acc-cards, .mk-rel { grid-template-columns: 1fr; }
  .mk-table thead { display: none; }
  .mk-table, .mk-table tbody, .mk-table tr { display: block; }
  .mk-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .mk-table th, .mk-table td { padding: 0; border: 0; }
  .mk-table tbody th { grid-column: 1; }
  .mk-table td.mk-code { grid-row: 1; grid-column: 2; }
  .mk-table td:nth-child(n+3) { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); text-align: left; }
  .mk-table .m-only { display: inline; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .acc-logos li { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
