/* ══════════════════════════════════════════════════════════════════════
   Kerangka tampilan website PA Mesuji untuk aplikasi antrean (sidang, PTSP, portal).
   Disalin dari mesuji_frontend/app/{globals,portal-chrome,portal-pages}.css:
     topbar (.pc-topbar) · bilah identitas (.portal-header, .portal-brand) · bar menu (.portal-menubar,
     .portal-nav) · page hero (.pc-page-hero, .pc-breadcrumb, .pc-eyebrow) · footer (.pc-footer).
   Variabel memakai awalan --w- agar tidak bentrok dengan Hope UI / Tailwind / DaisyUI aplikasi.
   Satu berkas yang sama dipakai ketiga aplikasi — ubah di satu tempat lalu salin.
   ══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-var.woff2") format("woff2-variations"); }
@font-face { font-family: "Plus Jakarta Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2-variations"); }

:root {
  --w-brand: #056e4f;
  --w-brand-mid: #067856;
  --w-brand-dark: #045a40;
  --w-brand-ink: #04392a;
  --w-brand-bright: #0dbd89;
  --w-brand-pale: #e9f6f1;
  --w-gold: #ff9900;
  --w-gold-light: #ffb84d;
  --w-gold-pale: #fff4e0;
  --w-ink: #1f2937;
  --w-muted: #6b7280;
  --w-line: #e5e7eb;
  --w-paper: #f1f3f4;
  --w-font: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
  --w-display: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --w-ease: cubic-bezier(.16, 1, .3, 1);
  --w-shadow-sm: 0 2px 6px rgba(2, 46, 34, .05), 0 8px 24px rgba(2, 46, 34, .07);
  --w-shadow-md: 0 6px 16px rgba(2, 46, 34, .07), 0 18px 44px rgba(2, 46, 34, .10);
}

.ws-site { font-family: var(--w-font); color: var(--w-ink); background: #fff; }
.ws-site h1, .ws-site h2, .ws-site h3, .ws-site h4 { font-family: var(--w-display); }
.ws-site a { text-decoration: none; }
.ws-site ul, .ws-site ol { margin: 0; padding: 0; }
.portal-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; box-sizing: border-box; }
@media (min-width: 640px) { .portal-container { padding-inline: 1.5rem; } }
@media (min-width: 1500px) { .pc-topbar .portal-container, .portal-header .portal-container, .portal-menubar .portal-container { max-width: 1440px; } }

/* ── Topbar ─────────────────────────────────────────────────────── */
.pc-topbar { background: linear-gradient(90deg, var(--w-brand-ink), var(--w-brand-dark)); color: #fff; font-size: 11px; }
.pc-topbar__inner { display: flex; align-items: center; gap: .75rem; min-height: 34px; }
.pc-topbar__label { display: none; flex-shrink: 0; align-items: center; gap: .4rem; font-weight: 600; letter-spacing: .025em; color: var(--w-gold-light); }
.pc-topbar__sep { display: none; width: 1px; height: 12px; flex-shrink: 0; background: rgb(255 255 255 / .2); }
.pc-topbar__text { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgb(255 255 255 / .8); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pc-topbar__clock { display: none; flex-shrink: 0; align-items: center; gap: .4rem; margin-left: auto; color: rgb(255 255 255 / .75); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-topbar__clock i, .pc-topbar__clock svg, .pc-topbar__label i, .pc-topbar__label svg { color: var(--w-gold-light); }
@media (min-width: 640px) { .pc-topbar__label { display: inline-flex; } .pc-topbar__sep { display: block; } }
@media (min-width: 768px) { .pc-topbar__clock { display: inline-flex; } }

/* ── Bilah identitas ────────────────────────────────────────────── */
.portal-header {
  position: relative; z-index: 1070; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(13, 189, 137, .14), transparent 55%),
    linear-gradient(105deg, #03301f 0%, var(--w-brand-ink) 35%, #064a36 70%, #075a42 100%);
}
.portal-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 104px; padding-block: .85rem; }
.portal-brand { display: flex; align-items: center; gap: .95rem; flex: 1 1 auto; min-width: 0; color: #fff !important; }
.portal-brand__logo-box { width: 60px; height: 60px; display: grid; place-items: center; flex-shrink: 0; transition: transform .2s ease; }
.portal-brand:hover .portal-brand__logo-box { transform: scale(1.03); }
.portal-brand__mark { width: 100%; height: 100%; object-fit: contain; }
.portal-brand__text { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.portal-brand__eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--w-gold-light); }
.portal-brand__name { font-family: var(--w-display); font-size: clamp(1.2rem, 1.5vw, 1.55rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; color: #fff; }
.portal-brand__address { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .8rem; color: rgba(255, 255, 255, .82); }
.portal-brand__address i, .portal-brand__address svg { flex-shrink: 0; color: var(--w-gold-light); }
.portal-brand__address span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal-header__aside { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex: 0 0 auto; }
.portal-header__contacts { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.portal-header__contact { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: rgba(255, 255, 255, .92) !important; white-space: nowrap; transition: color .15s ease; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.portal-header__contact:hover { color: var(--w-gold-light) !important; }
.portal-header__contact-ico { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; color: var(--w-gold-light); background: rgba(255, 184, 77, .14); font-size: .75rem; }
.portal-header__a11y {
  display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .85rem; flex-shrink: 0; border-radius: 999px; font-size: .75rem; font-weight: 800; color: #fff !important; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .45); transition: background .15s ease, border-color .15s ease; font-family: inherit;
}
.portal-header__a11y:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.ws-user { display: inline-flex; align-items: center; gap: .6rem; height: 42px; padding: 0 1rem 0 .3rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff !important; }
.ws-user__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--w-gold); color: var(--w-brand-ink); font-family: var(--w-display); font-weight: 800; }
.ws-user__name { display: flex; flex-direction: column; line-height: 1.15; font-size: .82rem; font-weight: 700; max-width: 220px; }
.ws-user__name small { font-size: .7rem; font-weight: 500; color: rgba(255, 255, 255, .65); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal-menu-button {
  display: none; align-items: center; justify-content: center; gap: .4rem; height: 44px; min-width: 44px; padding: 0 .8rem; flex-shrink: 0; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; font-size: .82rem; font-weight: 700; font-family: inherit;
}
.portal-menu-button:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

/* ── Bar menu ───────────────────────────────────────────────────── */
.portal-menubar { position: sticky; top: 0; z-index: 1065; background: #0f3a2b; border-top: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 12px 26px -16px rgba(1, 28, 21, .7); }
.portal-menubar__inner { position: relative; }
.portal-nav { display: flex; align-items: stretch; gap: 0; min-height: 64px; list-style: none; }
.portal-nav__item { position: relative; display: flex; align-items: stretch; flex-shrink: 0; }
.portal-nav__item--home { align-items: center; margin-right: 1.4rem; }
.portal-nav__home { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; color: var(--w-brand-ink) !important; background: var(--w-gold); box-shadow: 0 6px 16px -8px rgba(255, 153, 0, .8); transition: background .2s ease, transform .2s ease; font-size: 1.1rem; }
.portal-nav__home:hover { background: var(--w-gold-light); transform: translateY(-1px); }
.portal-nav__item--cta { align-items: center; margin-left: auto; padding-left: .75rem; }
.portal-nav__cta { display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 1.25rem; border-radius: 999px; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--w-brand-ink) !important; background: var(--w-gold); transition: background .2s ease, transform .2s ease; }
.portal-nav__cta:hover { background: var(--w-gold-light); transform: translateY(-1px); }
.portal-nav__link { position: relative; display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; color: rgba(255, 255, 255, .9) !important; font-family: var(--w-font); white-space: nowrap; transition: color .18s ease; background: none; border: 0; cursor: pointer; }
.portal-nav__title { font-size: .86rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.portal-nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--w-gold); transform: scaleX(0); transition: transform .2s var(--w-ease); }
.portal-nav__chevron { flex-shrink: 0; opacity: .75; font-size: .7rem; transition: transform .2s ease, opacity .2s ease; }
.portal-nav__link:hover, .portal-nav__item:hover > .portal-nav__link, .portal-nav__item:focus-within > .portal-nav__link, .portal-nav__link.is-active { color: var(--w-gold-light) !important; }
.portal-nav__link:hover::after, .portal-nav__item:hover > .portal-nav__link::after, .portal-nav__link.is-active::after { transform: scaleX(1); }
.portal-nav__item:hover .portal-nav__chevron, .portal-nav__item:focus-within .portal-nav__chevron { transform: rotate(180deg); opacity: 1; }
.portal-nav__link:focus-visible, .portal-nav__home:focus-visible, .portal-nav__cta:focus-visible { outline: 3px solid var(--w-gold-light); outline-offset: -3px; }
/* Submenu sederhana (setara panel mega menu website). */
.portal-nav__drop { position: absolute; top: 100%; left: 0; min-width: 240px; padding: .5rem; list-style: none; background: #fff; border-radius: 0 0 14px 14px; border-top: 3px solid var(--w-gold); box-shadow: var(--w-shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 5; }
.portal-nav__item:hover > .portal-nav__drop, .portal-nav__item:focus-within > .portal-nav__drop { opacity: 1; visibility: visible; transform: none; }
.portal-nav__drop a { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--w-ink) !important; }
.portal-nav__drop a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--w-gold); flex-shrink: 0; }
.portal-nav__drop a:hover, .portal-nav__drop a.is-active { background: var(--w-brand-pale); color: var(--w-brand) !important; }

/* Laci menu ponsel/tablet. */
.ws-drawer { position: fixed; inset: 0; z-index: 2000; display: none; }
.ws-drawer.is-open { display: block; }
.ws-drawer__backdrop { position: absolute; inset: 0; background: rgba(2, 30, 20, .55); }
.ws-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(0, 0, 0, .25); }
.ws-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; color: #fff; background: linear-gradient(105deg, #03301f, var(--w-brand-ink) 60%, #064a36); border-bottom: 3px solid var(--w-gold); font-family: var(--w-display); font-weight: 800; }
.ws-drawer__close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 1rem; }
.ws-drawer__nav { flex: 1; overflow-y: auto; padding: .75rem; list-style: none; }
.ws-drawer__nav a { display: flex; align-items: center; gap: .7rem; padding: .8rem .85rem; border-radius: 12px; font-weight: 600; color: var(--w-ink) !important; }
.ws-drawer__nav a i { width: 20px; text-align: center; color: var(--w-brand); }
.ws-drawer__nav a:hover, .ws-drawer__nav a.is-active { background: var(--w-brand-pale); color: var(--w-brand) !important; }
.ws-drawer__group { margin: .6rem .85rem .2rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--w-muted); }
.ws-drawer__foot { padding: .9rem; border-top: 1px solid var(--w-line); display: grid; gap: .5rem; }

@media (max-width: 1199.98px) {
  .portal-menubar { display: none; }
  .portal-header { position: sticky; top: 0; }
  .portal-menu-button { display: inline-flex; }
  .portal-header__inner { min-height: 84px; }
  .portal-header__aside { display: none; }
}
@media (max-width: 640px) {
  .portal-brand__logo-box { width: 46px; height: 46px; }
  .portal-brand__eyebrow { font-size: .56rem; letter-spacing: .12em; }
  .portal-brand__address { display: none; }
  .portal-brand__name { font-size: 1.05rem; }
}

/* ── Page hero ──────────────────────────────────────────────────── */
.pc-page-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--w-brand-dark), var(--w-brand) 55%, var(--w-brand-mid)); color: #fff; }
.pc-page-hero::before { content: ''; position: absolute; right: -4rem; top: -6rem; width: 26rem; height: 26rem; border-radius: 50%; background: rgb(255 255 255 / .06); pointer-events: none; }
.pc-page-hero::after { content: ''; position: absolute; right: 8%; bottom: -5rem; width: 14rem; height: 14rem; border-radius: 2.5rem; border: 10px solid rgb(255 255 255 / .07); transform: rotate(14deg); pointer-events: none; }
.pc-page-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.75rem 2.5rem; }
@media (min-width: 768px) { .pc-page-hero__inner { padding-block: 2rem 3rem; } }
.pc-page-hero__text { flex: 1 1 auto; min-width: 0; max-width: 860px; }
.pc-page-hero h1 { margin: 0; font-family: var(--w-display); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15; color: #fff !important; overflow-wrap: anywhere; text-wrap: balance; letter-spacing: normal; }
.pc-page-hero__desc { margin: .85rem 0 0; max-width: 68ch; font-size: clamp(.94rem, 1.3vw, 1.02rem); line-height: 1.7; color: rgb(255 255 255 / .85); }
.pc-page-hero__aside { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.pc-page-hero__chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; }
.pc-page-hero__chip i, .pc-page-hero__chip svg { color: var(--w-gold-light); }
.pc-breadcrumb { margin-bottom: 1.5rem; font-size: .875rem; }
.pc-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; }
.pc-breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; color: rgb(255 255 255 / .8); }
.pc-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .1rem; color: rgb(255 255 255 / .55); }
.pc-breadcrumb a { color: rgb(255 255 255 / .85) !important; transition: color .15s; }
.pc-breadcrumb a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.pc-breadcrumb [aria-current] { font-weight: 500; color: #fff; }
.pc-eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .75rem; padding: .2rem .75rem; border-radius: 9999px; background: var(--w-gold); color: var(--w-brand-ink); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 767px) { .pc-page-hero__aside { display: none; } }

/* ── Footer ─────────────────────────────────────────────────────── */
.pc-footer { position: relative; overflow: hidden; background: var(--w-brand-ink); color: #fff; }
.pc-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--w-gold), var(--w-gold-light), var(--w-gold)); }
.pc-footer__top { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: 3rem; }
.pc-footer__top > * { min-width: 0; }
@media (min-width: 768px) { .pc-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pc-footer__top { grid-template-columns: 1.1fr 1fr 1fr; } }
.pc-footer__brand { display: flex; align-items: center; gap: .75rem; }
.pc-footer__brand img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.pc-footer__brand small { display: block; font-size: .75rem; font-weight: 500; color: rgb(255 255 255 / .6); }
.pc-footer__brand strong { display: block; font-size: .875rem; font-weight: 700; }
.pc-footer__about { margin: 1rem 0 0; font-size: .875rem; line-height: 1.65; color: rgb(255 255 255 / .7); }
.pc-footer h2 { margin: 0 0 1rem; font-family: var(--w-font); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--w-gold-light) !important; }
.pc-footer__contact { display: grid; gap: .75rem; list-style: none; font-size: .875rem; color: rgb(255 255 255 / .7); }
.pc-footer__contact li { display: flex; align-items: flex-start; gap: .65rem; }
.pc-footer__contact i, .pc-footer__contact svg { flex-shrink: 0; margin-top: .2rem; width: 16px; text-align: center; color: var(--w-gold-light); }
.pc-footer__contact a, .pc-footer__links a { color: rgb(255 255 255 / .7) !important; overflow-wrap: anywhere; transition: color .15s; }
.pc-footer__contact a:hover, .pc-footer__links a:hover { color: var(--w-gold-light) !important; }
.pc-footer__links { list-style: none; columns: 2; column-gap: 1.5rem; }
.pc-footer__links li { break-inside: avoid; }
.pc-footer__links a { display: flex; align-items: center; min-height: 26px; margin-bottom: .25rem; font-size: .875rem; }
.pc-footer__bottom { position: relative; z-index: 1; border-top: 1px solid rgb(255 255 255 / .1); background: rgb(0 0 0 / .2); }
.pc-footer__bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; padding-block: 1.25rem; font-size: .75rem; text-align: center; color: rgb(255 255 255 / .6); }
@media (min-width: 640px) { .pc-footer__bottom-inner { flex-direction: row; text-align: left; } }

/* ── Badan halaman & kartu bergaya website ─────────────────────── */
.ws-body { padding-block: 2.25rem 3.5rem; background: #fff; }
.ws-card { border-radius: 1.25rem; background: #fff; border: 1px solid #e3ebe8; box-shadow: var(--w-shadow-sm); }

/* Ticker pengumuman di topbar (website: .pc-ticker). */
.portal-ticker { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); }
.portal-ticker__track { display: flex; width: max-content; animation: ws-ticker 60s linear infinite; }
.portal-ticker:hover .portal-ticker__track { animation-play-state: paused; }
.portal-ticker__list { display: flex; flex-shrink: 0; }
.portal-ticker__item { display: inline-flex; align-items: center; gap: .4rem; min-height: 26px; padding-right: 2.5rem; color: rgb(255 255 255 / .8); white-space: nowrap; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.portal-ticker__item i { width: 4px; height: 4px; border-radius: 50%; background: var(--w-gold-light); flex-shrink: 0; }
@keyframes ws-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .portal-ticker__track { animation: none; } }

/* Media sosial & navigasi bilah bawah footer (website: .pc-footer__social, .pc-footer__bottom nav). */
.pc-footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; list-style: none; }
.pc-footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff !important; transition: background .15s, color .15s; }
.pc-footer__social a:hover { background: var(--w-gold); color: var(--w-brand-ink) !important; }
.pc-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.pc-footer__nav a { display: inline-flex; align-items: center; min-height: 24px; color: rgb(255 255 255 / .6) !important; transition: color .15s; }
.pc-footer__nav a:hover { color: var(--w-gold-light) !important; }
.ws-drawer__btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 44px; border-radius: 999px; font-weight: 700; background: var(--w-gold); color: var(--w-brand-ink) !important; }
