/* Full-screen PDF viewer <dialog> — /career/job notification and the
   notice-board pages (notices, circulars, tenders). */
body.notification-viewer-open { overflow: hidden; }
.notification-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f172a; color: #fff; }
.notification-viewer:focus { outline: none; }
.notification-viewer[open] { display: flex; flex-direction: column; animation: nv-in .2s ease-out; }
.notification-viewer::backdrop { background: rgba(3,8,23,.75); }
@keyframes nv-in { from { opacity: 0; } to { opacity: 1; } }

.notification-viewer-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 20px; background: linear-gradient(100deg, #08163c 0%, #102a6b 55%, #1e40af 100%); border-bottom: 1px solid rgba(147,197,253,.25); box-shadow: 0 4px 18px rgba(3,8,23,.35); flex-shrink: 0; }
.notification-viewer-heading { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.notification-viewer-badge { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; font-size: 19px; box-shadow: 0 4px 12px rgba(190,18,60,.45), inset 0 1px 0 rgba(255,255,255,.25); }
/* flex: 1 sizes the titles from the free space in the bar, not their intrinsic
   width: WebKit under-measures a column of ellipsis children and truncated
   the subtitle in Safari even with room to spare. */
.notification-viewer-titles { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.notification-viewer-titles h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-viewer-subtitle { margin-top: 2px; font-size: .8rem; color: #bfdbfe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notification-viewer-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.notification-viewer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; font-family: inherit; font-size: .92rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.notification-viewer-btn:hover { text-decoration: none; transform: translateY(-1px); }
.notification-viewer-btn:focus-visible, .notification-viewer-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.notification-viewer-btn-ghost { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: #fff; }
.notification-viewer-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.16); color: #fff; }
.notification-viewer-btn-apply { border: 0; background: linear-gradient(135deg, #059669 0%, #10b981 100%); color: #fff; padding-inline: 22px; box-shadow: 0 6px 18px rgba(16,185,129,.4); }
.notification-viewer-btn-apply:hover { color: #fff; box-shadow: 0 8px 24px rgba(16,185,129,.55); }
.notification-viewer-btn-light { border: 0; background: #fff; color: #08163c; }
.notification-viewer-btn-light:hover { background: #e0ecff; color: #08163c; }
.notification-viewer-divider { width: 1px; height: 28px; margin: 0 2px; background: rgba(255,255,255,.25); }
.notification-viewer-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.15rem; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.notification-viewer-close:hover { background: rgba(244,63,94,.85); transform: rotate(90deg); }

.notification-viewer-body { position: relative; flex: 1 1 auto; min-height: 0; background: #334155; }
.notification-viewer-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.notification-viewer-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 24px 16px; text-align: center; }
.notification-viewer-fallback[hidden] { display: none; }
.notification-viewer-fallback > i { font-size: 3rem; color: #fca5a5; }
.notification-viewer-fallback p { max-width: 40ch; margin: 0; color: #e2e8f0; line-height: 1.6; }

@media (max-width: 767px) {
  .notification-viewer-bar { gap: 10px; min-height: 60px; padding: 10px 12px; }
  .notification-viewer-subtitle { display: none; }
  .notification-viewer-badge { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .notification-viewer-titles h2 { font-size: 1rem; }
  .notification-viewer-actions { gap: 8px; }
  .notification-viewer-divider { display: none; }
  /* Download collapses to an icon; Apply keeps its label as the main action. */
  .notification-viewer-btn-ghost { width: 40px; min-height: 40px; padding: 0; }
  .notification-viewer-btn-ghost .notification-viewer-btn-label { display: none; }
  .notification-viewer-btn-apply { min-height: 40px; padding: 8px 16px; }
  .notification-viewer-close { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .notification-viewer-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-viewer[open], .notification-viewer-close, .notification-viewer-btn { animation: none; transition: none; }
  .notification-viewer-close:hover, .notification-viewer-btn:hover { transform: none; }
}
