/* BIDIK BK UNRI — design system inspired by unri.ac.id (navy/sky blue, gold accents, Melayu pattern). */

:root {
  --navy-900: #04224a;
  --navy-800: #073f87;
  --blue-700: #0a5ca8;
  --blue-600: #0171aa;
  --sky-500: #0290d9;
  --sky-400: #239fdf;
  --ice-100: #c3eafe;
  --ice-50: #e6f6ff;
  --gold-500: #ffc800;
  --gold-600: #e6a900;
  --green-600: #2f8f3a;
  --ink: #0e1a2b;
  --ink-soft: #3d4b60;
  --muted: #5a6880;
  --line: #d8e2ee;
  --surface: #ffffff;
  --bg: #f4f8fc;
  --focus: #ffb300;

  --sev-normal: #2e7d32;
  --sev-mild: #8bb22c;
  --sev-moderate: #f2b705;
  --sev-severe: #ef6c00;
  --sev-extreme: #c62828;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(7, 63, 135, .08);
  --shadow: 0 12px 32px rgba(7, 63, 135, .12);
  --shadow-lg: 0 24px 60px rgba(4, 34, 74, .22);
  --gradient: linear-gradient(120deg, var(--navy-800) 0%, var(--blue-600) 55%, var(--sky-500) 100%);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --text-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--text-scale)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-size: .85em; background: var(--ice-50); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-500); color: var(--navy-900); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold-500); color: var(--navy-900); padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.container--xs { max-width: 520px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-gold { color: var(--gold-500); }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--navy-800); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem; border-radius: var(--radius-pill);
  border: 2px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--blue-600); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--navy-800); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.btn--gold:hover { --btn-bg: #ffd633; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--blue-600); --btn-bd: var(--blue-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); }
.btn--ghost:hover { --btn-bg: var(--ice-50); box-shadow: none; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .24); }
.btn--sm { min-height: 38px; padding: .45rem .95rem; font-size: .85rem; }
.btn--lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row--center { justify-content: center; }
.inline-form { display: inline; margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }
.link-back { font-weight: 600; text-decoration: none; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--navy-900); color: #dbe9fb; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: #dbe9fb; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; padding: .75rem 0; transition: padding .25s var(--ease), background .25s; }
.page-home .site-header { position: absolute; left: 0; right: 0; top: 34px; }
.page-home .site-header.is-stuck { position: fixed; top: 0; }
.site-header.is-stuck { padding: .4rem 0; }
.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, .97); border-radius: var(--radius-pill);
  padding: .55rem .75rem .55rem 1.5rem; box-shadow: var(--shadow);
  backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--navy-900); flex-shrink: 0; }
.brand img { width: 104px; }
.brand__divider { width: 1px; height: 38px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; letter-spacing: .04em; color: var(--navy-800); }
.brand__text small { font-size: .72rem; color: var(--muted); }
.nav { position: relative; display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  padding: .55rem .85rem .7rem; color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: .95rem; letter-spacing: .005em; border-radius: var(--radius-sm);
  transition: color .25s var(--ease);
}
/* Reserve the bold width so the active item never shifts its neighbours. */
.nav__link::before { content: attr(data-text); content: attr(data-text) / ""; font-weight: 600; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
.nav__link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 3px; border-radius: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--navy-800); }
.nav__link:hover::after { transform: scaleX(.55); }
.nav__link.is-active { color: var(--navy-800); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }
/* Sliding indicator (desktop, added by JS) replaces the per-link underline. */
.nav__indicator {
  position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-500), #ffd84d); box-shadow: 0 2px 10px rgba(255, 200, 0, .55);
  opacity: 0; transition: transform .45s cubic-bezier(.65, 0, .35, 1), width .45s cubic-bezier(.65, 0, .35, 1), opacity .25s;
}
.nav__indicator.no-anim { transition: none; }
.nav.has-indicator .nav__link::after { display: none; }
.nav__actions { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ice-50); cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ''; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.user-chip { display: flex; align-items: center; gap: .5rem; padding-right: .25rem; max-width: 220px; }
.user-chip__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 700; flex-shrink: 0; }
.user-chip__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-chip__name { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__role { font-size: .72rem; color: var(--muted); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .navbar { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .js .nav { display: none; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 .75rem; }
  .js .nav.is-open { display: flex; animation: drop .25s var(--ease); }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__link { display: flex; flex-direction: row; align-items: center; padding: .75rem 1rem .75rem 1.25rem; border-radius: var(--radius-sm); }
  .nav__link::before { display: none; }
  .nav__link::after { left: 0; right: auto; top: .55rem; bottom: .55rem; width: 4px; height: auto; transform: scaleY(0); }
  .nav__link:hover { background: #f3f7fc; }
  .nav__link:hover::after { transform: scaleY(.5); }
  .nav__link.is-active { background: var(--ice-50); }
  .nav__link.is-active::after { transform: scaleY(1); }
  .nav.has-indicator .nav__link::after { display: block; }
  .nav__indicator { display: none; }
  .js .nav.is-open .nav__list li { animation: navItemIn .4s var(--ease) both; }
  .js .nav.is-open .nav__list li:nth-child(2) { animation-delay: .04s; }
  .js .nav.is-open .nav__list li:nth-child(3) { animation-delay: .08s; }
  .js .nav.is-open .nav__list li:nth-child(4) { animation-delay: .12s; }
  .js .nav.is-open .nav__list li:nth-child(5) { animation-delay: .16s; }
  .nav__actions { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .75rem; }
  .user-chip { max-width: 100%; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .brand__divider, .brand__text small { display: none; }
  .brand img { width: 84px; }
  .topbar__unit { display: none; }
  .navbar { padding-left: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 190px 0 120px; overflow: hidden; isolation: isolate; min-height: 720px; }
.hero__bg { position: absolute; inset: -12% 0 -12% 0; background: url('/img/hero-rektorat.webp') center/cover no-repeat; z-index: -3; will-change: transform; }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(4, 34, 74, .95) 0%, rgba(7, 63, 135, .88) 40%, rgba(2, 144, 217, .55) 100%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 200px; background: url('/img/pattern-melayu.png') bottom center/auto 140px repeat-x; opacity: .14; z-index: -1; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #e4f0ff; max-width: 38rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.5rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero__chips li { padding: .4rem .9rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); font-size: .85rem; backdrop-filter: blur(4px); }
.hero__visual { position: relative; min-height: 420px; }
.hero__ring { position: absolute; inset: 8% 6% 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 200, 0, .45), rgba(255, 200, 0, 0) 62%), radial-gradient(circle, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 70%); }
.hero__person { position: relative; width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.hero__ornament { position: absolute; opacity: .9; animation: float 7s ease-in-out infinite; }
.hero__ornament--a { top: 22%; left: 47%; width: 46px; }
.hero__ornament--b { bottom: 18%; left: 6%; width: 32px; animation-delay: -3s; opacity: .6; }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: rgba(255, 255, 255, .96); color: var(--navy-900); padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; }
.float-card--top { top: 52%; right: -2%; }
.float-card--bottom { bottom: 16%; left: -2%; }
.float-card__num { font-size: 1.9rem; font-weight: 700; color: var(--blue-600); }
.float-card__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-500); display: grid; place-items: center; font-weight: 700; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; color: var(--bg); }
@media (max-width: 900px) {
  .hero { padding: 160px 0 90px; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; max-width: 460px; margin-inline: auto; width: 100%; }
  .float-card { font-size: .78rem; padding: .55rem .8rem; }
  .hero__ornament--a { top: 120px; left: auto; right: 8%; width: 34px; }
  .float-card__num { font-size: 1.5rem; }
}

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .75rem; }
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.eyebrow--light { color: #cfe6ff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: 2rem 0 4rem; }
.section--ice { background: var(--ice-50) url('/img/pattern-melayu.png') bottom center/auto 120px repeat-x; }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section__head--center .section__title, .section__title.center { justify-content: center; }
.title-ornament { width: 40px; height: 40px; }
.section__lead { font-size: 1.08rem; color: var(--ink-soft); }
.note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--gold-500); background: #fffaf0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.pillars { position: relative; z-index: 2; margin-top: -40px; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-6px); }
.pillar img { width: 56px; border-radius: 12px; flex-shrink: 0; }
.pillar h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; } }

.scale-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scale-card { position: relative; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.scale-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.scale-card::before { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .14; }
.scale-card--d::before { background: var(--navy-800); }
.scale-card--a::before { background: var(--sky-500); }
.scale-card--s::before { background: var(--gold-500); opacity: .35; }
.scale-card__tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: var(--radius-pill); background: var(--ice-50); color: var(--blue-700); margin-bottom: .75rem; }
.scale-card h3 { font-size: 1.4rem; }
.scale-card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .scale-cards { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, var(--sky-400) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step__num { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 22px; background: var(--gradient); color: #fff; font-size: 1.5rem; font-weight: 700; box-shadow: 0 10px 24px rgba(1, 113, 170, .35); transform: rotate(-6deg); }
.step:nth-child(even) .step__num { transform: rotate(6deg); }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps::before { top: 0; bottom: 0; left: 33px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-400) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 1rem; text-align: left; align-items: center; }
  .step__num { margin: 0; grid-row: span 2; }
  .step h3, .step p { margin: 0; }
}

.band { position: relative; color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; overflow: hidden; isolation: isolate; }
.band__bg { position: absolute; inset: -35% 0; background: url('/img/bg-pattern-blue.webp') center/cover; z-index: -2; will-change: transform; }
.band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 34, 74, .92), rgba(7, 63, 135, .6)); z-index: -1; }
.band__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.band p { color: #e1efff; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; }
.stat { padding: 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.stat dt { font-size: .85rem; color: #cfe6ff; }
.stat dd { margin: 0; font-size: 2rem; font-weight: 700; color: var(--gold-500); }
@media (max-width: 900px) { .band__inner { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media { margin: 0; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: .1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.faq { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.faq__item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-weight: 600; color: var(--navy-900); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--ice-50); color: var(--blue-600); display: grid; place-items: center; font-size: 1.25rem; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); background: var(--gold-500); color: var(--navy-900); }
.faq__item p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--ink-soft); }

.cta { position: relative; background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-600) 100%); color: #fff; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: url('/img/bg-pattern-blue.webp') center/cover; opacity: .3; mix-blend-mode: screen; }
.cta__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; padding-top: 4rem; }
.cta__copy { padding-bottom: 4rem; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta p { color: #e1efff; font-size: 1.05rem; }
.cta__person { max-width: 400px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } .cta__copy { padding-bottom: 0; } .cta__person { max-width: 280px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero, .dash-hero, .staff-head { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--gradient); }
.page-hero { padding: 4rem 0 4.5rem; }
.page-hero__bg, .dash-hero__bg, .staff-head__bg { position: absolute; inset: -35% 0; background: url('/img/bg-pattern-blue.webp') center/cover; opacity: .55; z-index: -1; will-change: transform; }
.page-hero__title { color: #fff; text-transform: uppercase; }
.page-hero__lead { color: #e1efff; max-width: 42rem; font-size: 1.08rem; margin: 0; }
.breadcrumb ol { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }
.breadcrumb a { color: #fff; }
.dash-hero { padding: 2.5rem 0 0; }
.dash-hero__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.dash-hero__inner > div { padding-bottom: 2.5rem; }
.dash-hero h1 { color: #fff; }
.dash-hero p { color: #e1efff; margin: 0; }
.dash-hero__img { width: 170px; }
@media (max-width: 640px) { .dash-hero__img { display: none; } }
.staff-head { padding: 2.25rem 0; }
.staff-head__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.staff-head h1 { color: #fff; margin-bottom: .35rem; }
.staff-head p { color: #e1efff; margin: 0; max-width: 52rem; }
.staff-head__ornament { width: 64px; border-radius: 16px; flex-shrink: 0; animation: float 7s ease-in-out infinite; }

/* ---------- Prose ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.quote { margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--ice-50); border-left: 5px solid var(--sky-500); font-style: italic; }
.side-card { position: sticky; top: 110px; background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.side-card img { width: 150px; margin: -.5rem auto .5rem; }
.facts { display: grid; gap: .5rem; text-align: left; margin: 0 0 1.25rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts--compact div { padding: .35rem 0; font-size: .9rem; }
.refs li { margin-bottom: .75rem; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } .side-card { position: static; } }

/* ---------- Cards, tables, forms ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.card--flush { padding: 0; overflow: hidden; }
.card--feature { background: linear-gradient(160deg, var(--surface) 60%, var(--ice-50)); border-top: 5px solid var(--gold-500); }
.card--contact { background: var(--navy-800) url('/img/pattern-melayu.png') bottom center/auto 80px repeat-x; color: #fff; border: 0; }
.card--contact h2 { color: #fff; }
.card--contact .btn--outline { --btn-fg: #fff; --btn-bd: #fff; }
.card--contact .muted { color: #cfe6ff; }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
.table th, .table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--ice-50); color: var(--navy-800); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:hover { background: #f8fbff; }
.table--compact th, .table--compact td { padding: .55rem .7rem; }
.table tr.is-current { background: #fff8e1; }
.review-table tr.is-priority { box-shadow: inset 4px 0 0 var(--sev-severe); }

.form { display: grid; gap: 1.1rem; }
.form--grid { grid-template-columns: 1fr 1fr; }
.form--row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form--grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.field--inline { gap: .25rem; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #b9c7d8; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(1, 113, 170, .15); outline: none; }
.hint { color: var(--muted); font-size: .8rem; }
.req { color: #b3261e; }
.password-field { position: relative; }
.password-field input { padding-right: 6.5rem; }
.password-field__toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--ice-50); color: var(--blue-700); font: 600 .8rem var(--font); padding: .45rem .75rem; border-radius: var(--radius-pill); cursor: pointer; }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--blue-600); flex-shrink: 0; }
.check--box { padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fbfdff; }
.check--box:has(input:checked) { border-color: var(--blue-600); background: var(--ice-50); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .55rem 1rem; border: 1.5px solid #b9c7d8; border-radius: var(--radius-pill); cursor: pointer; font-size: .9rem; }
.chip input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert--error { background: #fdecea; border-color: #f5c2bd; color: #7f1d16; }
.alert--success { background: #e8f5ec; border-color: #b9e0c3; color: #1b5e20; }
.alert--info { background: var(--ice-50); border-color: var(--ice-100); color: var(--navy-900); }
.flash-stack { padding-top: 1rem; }
.secret { font-size: 1rem; user-select: all; background: #fff; }

/* ---------- Auth ---------- */
.auth { padding: 3rem 0 5rem; background: radial-gradient(circle at 10% 10%, var(--ice-50), transparent 50%), var(--bg); }
.auth__grid { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); max-width: 1000px; }
.auth__grid--wide { max-width: 1140px; }
.auth__aside { position: relative; background: var(--gradient); display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 2rem 2rem 0; overflow: hidden; isolation: isolate; }
.auth__aside-bg { position: absolute; inset: -15% 0; background: url('/img/bg-pattern-blue.webp') center/cover; opacity: .7; z-index: -1; }
.auth__aside img { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
.auth__quote { order: -1; margin: 0; color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.auth__grid--wide .auth__aside { justify-content: flex-start; padding-bottom: 2rem; }
.auth__grid--wide .auth__aside img { position: sticky; top: 110px; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.auth__card { padding: clamp(1.5rem, 4vw, 3rem); }
.auth__switch { margin-top: 1.5rem; text-align: center; }
.auth__help { font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .auth__grid { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ---------- Questionnaire ---------- */
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: st; gap: .5rem; }
.stepper li { flex: 1; counter-increment: st; padding: .6rem .75rem; border-radius: var(--radius-pill); background: #e9eef5; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.stepper li::before { content: counter(st) '. '; }
.stepper li.is-done { background: var(--ice-100); color: var(--navy-800); }
.stepper li.is-done::before { content: '✓ '; }
.stepper li.is-current { background: var(--blue-600); color: #fff; }
.consent-list { display: grid; gap: .75rem; margin: 0 0 1.5rem; }
.consent-list div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .85rem 1rem; background: #fbfdff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.consent-list dt { font-weight: 700; color: var(--navy-800); }
.consent-list dd { margin: 0; }
@media (max-width: 640px) { .consent-list div { grid-template-columns: 1fr; gap: .25rem; } }

.quiz-head { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; border-top: 5px solid var(--gold-500); }
.quiz-instructions { font-size: 1.02rem; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.legend__item { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); background: var(--ice-50); padding: .6rem; border-radius: var(--radius-sm); line-height: 1.35; }
.legend__num { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-600); color: #fff; font-weight: 700; }
@media (max-width: 720px) { .legend { grid-template-columns: 1fr 1fr; } }
.progress-sticky { position: sticky; top: 76px; z-index: 20; background: rgba(244, 248, 252, .95); backdrop-filter: blur(6px); padding: .65rem 0; margin-bottom: 1rem; }
.progress { height: 10px; border-radius: var(--radius-pill); background: #dfe7f1; overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky-500), var(--blue-600)); border-radius: inherit; transition: width .35s var(--ease); transform-origin: left; }
.progress__text { margin: .35rem 0 0; font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.quiz { display: grid; gap: 1rem; }
.q { border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; margin: 0; background: var(--surface); transition: border-color .25s, box-shadow .25s; scroll-margin-top: 150px; }
.q.is-answered { border-color: var(--ice-100); }
.q.is-missing { border-color: #e57373; box-shadow: 0 0 0 4px rgba(229, 115, 115, .15); }
.q__text { display: flex; gap: .85rem; font-weight: 600; font-size: 1.02rem; color: var(--navy-900); padding: 0; margin-bottom: 1rem; }
.q__num { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ice-50); color: var(--blue-700); font-weight: 700; }
.q.is-answered .q__num { background: var(--blue-600); color: #fff; }
.q__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt__box { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; padding: .75rem .5rem; border: 1.5px solid #c9d6e5; border-radius: var(--radius); cursor: pointer; text-align: center; transition: all .2s var(--ease); background: #fff; }
.opt__num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ice-50); color: var(--blue-700); font-weight: 700; font-size: 1.05rem; }
.opt__label { font-size: .78rem; line-height: 1.3; color: var(--ink-soft); }
.opt:hover .opt__box { border-color: var(--sky-500); transform: translateY(-2px); }
.opt input:checked + .opt__box { border-color: var(--blue-600); background: var(--ice-50); box-shadow: 0 6px 16px rgba(1, 113, 170, .18); }
.opt input:checked + .opt__box .opt__num { background: var(--blue-600); color: #fff; }
.opt input:checked + .opt__box .opt__label { color: var(--navy-900); font-weight: 600; }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .q__opts { grid-template-columns: 1fr; }
  .opt__box { flex-direction: row; text-align: left; padding: .6rem .75rem; }
  .progress-sticky { top: 70px; }
}
.quiz__submit { text-align: center; padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.done { text-align: center; }
.done__icon { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.5rem; color: #fff; background: var(--gradient); box-shadow: 0 0 0 10px var(--ice-50); animation: pop .6s var(--ease); }
.safety { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: #fff8e1; border: 1px solid #ffe08a; text-align: left; font-size: .93rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.timeline li { display: flex; gap: .75rem; align-items: center; font-size: .92rem; }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 4px var(--ice-50); flex-shrink: 0; }

/* ---------- Staff dashboard ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.filters select { min-width: 200px; }
.filters .check { align-self: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-top: 4px solid var(--blue-600); text-decoration: none; color: inherit; }
.kpi--warn { border-top-color: var(--sev-severe); }
.kpi--ok { border-top-color: var(--sev-normal); }
.kpi--link { border-top-color: var(--gold-500); transition: transform .2s var(--ease); }
.kpi--link:hover { transform: translateY(-3px); color: inherit; }
.kpi__label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi__value { font-size: 2.1rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.kpi__sub { font-size: .8rem; color: var(--ink-soft); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.panel--wide { grid-column: 1 / -1; }
.panel h2 { font-size: 1.15rem; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .82rem; }
.chart-legend li { display: flex; gap: .4rem; align-items: center; }
.swatch { width: 14px; height: 14px; border-radius: 4px; }
.swatch--normal, .fill--normal { background: var(--sev-normal); fill: var(--sev-normal); }
.swatch--mild, .fill--mild { background: var(--sev-mild); fill: var(--sev-mild); }
.swatch--moderate, .fill--moderate { background: var(--sev-moderate); fill: var(--sev-moderate); }
.swatch--severe, .fill--severe { background: var(--sev-severe); fill: var(--sev-severe); }
.swatch--extremely_severe, .fill--extremely_severe { background: var(--sev-extreme); fill: var(--sev-extreme); }
.stack { margin-bottom: 1rem; }
.stack__label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .35rem; }
.stack__label span { color: var(--muted); font-size: .8rem; }
.stack__bar { width: 100%; height: 26px; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.stack__bar rect { stroke: #fff; stroke-width: .3; transition: opacity .2s; }
.stack__bar rect:hover { opacity: .8; }
.data-table summary { cursor: pointer; font-weight: 600; color: var(--blue-600); margin-top: .5rem; }
.trend { width: 100%; height: 180px; }
.trend__bar { fill: var(--sky-500); transition: fill .2s; }
.trend__bar:hover { fill: var(--navy-800); }
.trend__labels { display: flex; justify-content: space-around; font-size: .7rem; color: var(--muted); margin-top: .35rem; }
.trend__labels span { flex: 1; text-align: center; }
.mini-bar { display: flex; align-items: center; gap: .5rem; min-width: 120px; }
.mini-bar svg { width: 70px; height: 8px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.mini-bar__track { fill: #eef2f7; }
.mini-bar__fill { fill: var(--sev-severe); }
.mini-bar span { font-size: .85rem; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); }

.sev { display: inline-block; padding: .18rem .6rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.sev--normal { background: #e3f4e5; color: #1b5e20; border-color: #b9e0c0; }
.sev--mild { background: #f0f7dc; color: #46600e; border-color: #d6e8a8; }
.sev--moderate { background: #fff4cc; color: #6d4c00; border-color: #ffe083; }
.sev--severe { background: #ffe8d6; color: #8a3300; border-color: #ffc59a; }
.sev--extremely_severe { background: #fde2e2; color: #8e1414; border-color: #f5b5b5; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .25rem; }
.flag { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: var(--sev-severe); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: .3rem; }
.status { display: inline-block; padding: .18rem .6rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.status--pending { background: #fff4cc; color: #6d4c00; }
.status--in_review { background: var(--ice-50); color: var(--blue-700); }
.status--followed_up { background: #ede7f6; color: #4527a0; }
.status--closed { background: #e3f4e5; color: #1b5e20; }
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.score-card { padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-left: 6px solid var(--sev-normal); }
.score-card--mild { border-left-color: var(--sev-mild); }
.score-card--moderate { border-left-color: var(--sev-moderate); }
.score-card--severe { border-left-color: var(--sev-severe); }
.score-card--extremely_severe { border-left-color: var(--sev-extreme); }
.score-card h2 { font-size: 1rem; margin-bottom: .25rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.score-card__value { font-size: 2.6rem; font-weight: 700; color: var(--navy-900); margin: 0; line-height: 1.1; }
.score-card__value span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.score-card p { margin: .25rem 0; }
@media (max-width: 760px) { .score-cards { grid-template-columns: 1fr; } }
.answer { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; background: var(--ice-50); color: var(--blue-700); }
.answer--2 { background: #fff4cc; color: #6d4c00; }
.answer--3 { background: #ffe8d6; color: #8a3300; }
.notes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.note-item { padding: 1rem; border-radius: var(--radius); background: #fbfdff; border: 1px solid var(--line); }
.note-item p { white-space: pre-wrap; margin-bottom: .4rem; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.pager { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; }

.ai-panel { margin-top: 1.5rem; border: 1.5px solid var(--ice-100); background: linear-gradient(180deg, #fbfdff, #fff); }
.ai-panel__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.ai-panel__head h2 { display: flex; align-items: center; gap: .6rem; }
.ai-panel__head p { margin: 0; max-width: 46rem; }
.ai-badge { display: inline-grid; place-items: center; padding: .2rem .55rem; border-radius: 8px; background: linear-gradient(135deg, var(--gold-500), #ff9f1c); color: var(--navy-900); font-size: .75rem; font-weight: 800; }
.ai-panel__body h3 { font-size: 1.02rem; color: var(--navy-800); margin-top: 1.25rem; }
.ai-panel__meta { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; border-top: 1px dashed var(--line); padding-top: .75rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: #c9dcf5; padding: 4rem 0 0; overflow: hidden; }
.site-footer__pattern { position: absolute; inset: auto 0 0 0; height: 150px; background: url('/img/pattern-melayu.png') bottom center/auto 150px repeat-x; opacity: .08; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 140px; margin-bottom: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer address { font-style: normal; }
.site-footer__title { color: var(--gold-500); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer__title--spaced { margin-top: 1.5rem; }
.contact-list, .link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.contact-list li { display: grid; }
.contact-list__label { font-size: .75rem; color: #8fb2df; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__safety { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.25rem; font-size: .92rem; }
.site-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding: 1.25rem 0 1.5rem; font-size: .8rem; color: #8fb2df; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: 1fr; } }

.error-page__code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; line-height: 1; margin: 0; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Accessibility widget ---------- */
.a11y { position: fixed; left: 20px; bottom: 20px; z-index: 900; }
.a11y__fab { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: var(--navy-800); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(4, 34, 74, .35), 0 0 0 4px rgba(2, 144, 217, .35); transition: transform .2s var(--ease); }
.a11y__fab:hover { transform: scale(1.08); }
.a11y__panel { position: absolute; left: 0; bottom: 72px; width: min(360px, calc(100vw - 40px)); max-height: min(78vh, 640px); overflow-y: auto; background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.a11y__panel:not([hidden]) { animation: drop .25s var(--ease); }
.a11y__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: var(--gradient); color: #fff; }
.a11y__head h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.a11y__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.4rem; cursor: pointer; }
.a11y__body { padding: 1rem 1.25rem 1.25rem; }
.a11y__label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; display: flex; justify-content: space-between; }
.a11y__stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: 1rem; }
.a11y__stepper button { min-height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--ice-50); font: 700 1rem var(--font); color: var(--navy-800); cursor: pointer; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y__opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 76px; padding: .6rem .4rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fbfdff; color: var(--ink); font: 500 .8rem/1.25 var(--font); text-align: center; cursor: pointer; transition: all .15s; }
.a11y__opt:hover { border-color: var(--sky-500); }
.a11y__opt[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.a11y__ico { font-size: 1.25rem; line-height: 1; }
.a11y__hint { font-size: .78rem; color: var(--muted); margin: 1rem 0; }
.reading-guide { position: fixed; left: 0; right: 0; height: 14px; pointer-events: none; display: none; z-index: 899; background: rgba(255, 200, 0, .35); border-top: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); }
html.a11y-guide .reading-guide { display: block; }

/* Accessibility modes (classes on <html>, applied to #page so the widget stays usable). */
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea { font-family: 'Atkinson Hyperlegible', Verdana, sans-serif !important; }
html.a11y-spacing #page { letter-spacing: .06em; word-spacing: .16em; }
html.a11y-spacing #page p, html.a11y-spacing #page li, html.a11y-spacing #page dd { line-height: 2 !important; }
html.a11y-links #page a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff3b0 !important; color: #00306b !important; outline: 1px solid #c79100; }
html.a11y-grayscale #page { filter: grayscale(1); }
html.a11y-images #page img { opacity: 0 !important; }
html.a11y-images #page [class*="__bg"], html.a11y-images #page .cta::before { background-image: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 2.5-7.5L20 11z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus *:focus { outline: 4px solid #ff6f00 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(255, 111, 0, .3) !important; }
html.a11y-contrast { --ink: #000; --ink-soft: #000; --muted: #222; --line: #000; --bg: #fff; --blue-600: #00306b; --sky-500: #00306b; --navy-800: #001a3d; --gradient: #001a3d; }
html.a11y-contrast #page { background: #fff; }
html.a11y-contrast #page .card, html.a11y-contrast #page .pillar, html.a11y-contrast #page .q, html.a11y-contrast #page .faq__item { border: 2px solid #000 !important; box-shadow: none !important; }
html.a11y-contrast #page .hero__overlay, html.a11y-contrast #page .band::before { background: rgba(0, 0, 0, .9); }
html.a11y-contrast #page a:not(.btn) { color: #00306b; text-decoration: underline; }
html.a11y-contrast #page .btn--primary { --btn-bg: #000; }
html.a11y-dark { --ink: #e8eef7; --ink-soft: #c8d4e4; --muted: #a9b8cc; --line: #2c3d57; --bg: #0b1626; --surface: #13223a; --ice-50: #1a2e4c; --ice-100: #24426b; --navy-900: #e8eef7; }
html.a11y-dark #page .float-card, html.a11y-dark #page .opt__box, html.a11y-dark #page input, html.a11y-dark #page select, html.a11y-dark #page textarea, html.a11y-dark #page .check--box, html.a11y-dark #page .legend__item, html.a11y-dark #page .note-item, html.a11y-dark #page .consent-list div, html.a11y-dark #page .table tbody tr:hover { background: #13223a; color: var(--ink); }
html.a11y-dark #page .navbar { background: #f4f8fc; }
html.a11y-dark #page .nav-toggle { background: #dcebfa; }
html.a11y-dark #page .nav__link { color: #3d4b60; }
html.a11y-dark #page .nav__link.is-active, html.a11y-dark #page .nav__link:hover, html.a11y-dark #page .user-chip__name { color: #073f87; }
html.a11y-dark #page .brand__text strong, html.a11y-dark #page .navbar .btn--ghost { color: #073f87; }
html.a11y-dark #page .brand__text small, html.a11y-dark #page .user-chip__role { color: #5a6880; }
html.a11y-dark #page .topbar, html.a11y-dark #page .site-footer { background: #050d18; }
html.a11y-dark #page .table thead th { color: #cfe6ff; }
html.a11y-dark #page .note, html.a11y-dark #page .safety { background: #2a2410; color: #f5e7b0; }
html.a11y-dark #page a:not(.btn) { color: #8cc8ff; }
html.a11y-dark #page .hero__wave { color: var(--bg); }

/* ---------- Motion ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--delay { transition-delay: .12s; }
.js .reveal--delay2 { transition-delay: .24s; }
.js .reveal--delay3 { transition-delay: .36s; }
.js .reveal--delay4 { transition-delay: .48s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }
@keyframes navItemIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-motion [data-parallax] { transform: none !important; }

@media print {
  .topbar, .site-header, .site-footer, .a11y, .btn, form { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #999; }
}
