/* ===================================================================
   ACADEMIC WEBSITE DESIGN SYSTEM (WORLD-CLASS MINIMALIST)
   dr hab. Piotr Artiemjew, prof. UWM
   Faculty of Mathematics and Computer Science
   University of Warmia and Mazury in Olsztyn
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Sophisticated, neutral palette (inspired by Swiss/Nordic typography) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;

  --text-main: #0f172a;        /* Deep Slate 900 */
  --text-body: #334155;        /* Neutral Slate 700 - calm, readable */
  --text-muted: #64748b;       /* Slate 500 */
  --text-light: #94a3b8;       /* Slate 400 */

  --border-color: #e2e8f0;     /* Slate 200 - hairline */
  --border-subtle: #f1f5f9;

  --primary: #1e3a8a;          /* Academic Navy */
  --primary-hover: #0f172a;
  --primary-subtle: #eff6ff;

  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08);

  --max-width: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0b0f19;
    --bg-card: #111827;
    --bg-subtle: #1e293b;
    --bg-hover: #334155;

    --text-main: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border-color: #1e293b;
    --border-subtle: #182234;

    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-subtle: #1e293b;

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -99px;
  left: 20px;
  background: var(--text-main);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================================================================
   TOP STICKY NAVBAR - World-Class, Elegant, Always Accessible
   =================================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
@supports (backdrop-filter: blur(12px)) {
  .top-navbar {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
  }
  @media (prefers-color-scheme: dark) {
    .top-navbar {
      background: rgba(17, 24, 39, 0.90);
    }
  }
}
.top-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}
.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.top-nav-brand:hover {
  text-decoration: none;
  color: var(--primary);
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.top-nav-links::-webkit-scrollbar {
  display: none;
}
.top-nav-item a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.top-nav-item a:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  text-decoration: none;
}
.top-nav-item a[aria-current="page"] {
  background-color: var(--text-main);
  color: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .top-nav-item a[aria-current="page"] {
    background-color: var(--primary);
    color: #0b0f19;
  }
}

@media (max-width: 768px) {
  .top-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    min-height: auto;
    gap: 8px;
  }
  .top-nav-brand {
    text-align: center;
    justify-content: center;
  }
  .top-nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ===================================================================
   LAYOUT & CONTAINERS
   =================================================================== */
.page-wrapper {
  max-width: var(--max-width);
  margin: 20px auto 48px;
  padding: 0 20px;
}

/* Slim University Top Bar */
.institution-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.institution-name {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.institution-dept {
  color: var(--text-light);
}

@media (max-width: 680px) {
  .institution-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Header Banner */
.site-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  margin-bottom: 24px;
}
.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2-Column Grid */
.layout-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 880px) {
  .layout-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Sidebar */
.site-sidebar {
  width: 100%;
}
@media (min-width: 880px) {
  .site-sidebar {
    width: 280px;
    flex-shrink: 0;
  }
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* Avatar Frame: 4:5 Portrait without ANY top-cropping */
.profile-avatar-frame {
  width: 160px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.profile-avatar-frame:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.profile-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* CRITICAL: Never clips top of head! */
  display: block;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.profile-degree {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 10px;
}
.profile-role {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Academic Badges with SVG Icons */
.academic-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.academic-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.academic-badge:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Main Content Surface */
.main-content {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .main-content {
    padding: 24px 20px;
  }
}

/* Typography Hierarchy */
.main-content h1 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
}

.main-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.main-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 70px;
}

.main-content h3 {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 8px;
}

/* Clean Unobtrusive Lists */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.clean-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-subtle);
}
.clean-list li:last-child {
  border-bottom: none;
}
.clean-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Section Box */
.section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 20px;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag-minimal {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: 4px;
}

/* Publication Item */
.pub-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}
.pub-item:last-child {
  border-bottom: none;
}
.pub-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}
.pub-number {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.pub-year-badge {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-light);
}
.pub-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 10px;
}
.pub-text strong {
  font-weight: 500;
  color: var(--text-main);
}
.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.pub-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.pub-action-btn:hover {
  color: var(--primary-hover);
}

/* BibTeX Drawer */
.bibtex-box {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-body);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Minimalist Search & Filter Bar */
.search-container {
  margin-bottom: 24px;
}
.search-input {
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input:focus {
  border-color: var(--text-main);
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
.filter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.filter-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.year-pill {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
}
.year-pill:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}
.year-pill.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}
@media (prefers-color-scheme: dark) {
  .year-pill.active {
    background: var(--primary);
    color: #0b0f19;
    border-color: var(--primary);
  }
}

/* Teaching Course Cards */
.course-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  background: var(--bg-card);
  overflow: hidden;
}
.course-header {
  padding: 14px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}
.course-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
}
.course-body {
  padding: 20px;
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Student Projects Showcase Grid */
.student-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.student-project-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.student-project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.student-project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.student-project-content {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.student-project-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
}
.student-project-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.student-project-desc {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* Office Hours & Contact Details */
.office-hours-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
}
.office-hours-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
}
.office-hours-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.office-hours-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.office-hours-val {
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Responsive Video Embeds */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 16px 0;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  margin-top: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-body) !important;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-main) !important;
  border-color: var(--text-muted);
  text-decoration: none;
}

/* Topic Pills */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 9999px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.topic-pill:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--text-muted);
}
.topic-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Student Showcase Grid & Cards */
.risk-highlight {
  background-color: #fef08a;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: baseline;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  .risk-highlight {
    background-color: #eab308;
    color: #000000 !important;
  }
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.student-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--text-light);
}
.student-thumb {
  width: 100%;
  height: 160px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}
.student-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.student-card:hover .student-thumb img {
  transform: scale(1.03);
}
.student-type-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.student-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.student-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.35;
}
.student-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.student-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 14px;
  flex-grow: 1;
}
.student-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Floating Back-To-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.2s ease;
  z-index: 999;
}
.back-to-top-btn.visible {
  opacity: 0.9;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  opacity: 1;
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-main);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10000;
}
.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   PRINT STYLESHEET (For academic CV / Clean printing)
   =================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .top-navbar, .skip-link, .search-container, .pub-actions, .site-footer, .video-responsive, .toast-msg {
    display: none !important;
  }
  .page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .layout-grid {
    display: block !important;
  }
  .site-sidebar {
    width: 100% !important;
    border: none !important;
  }
  .profile-card {
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 0 0 20px !important;
    border-bottom: 2px solid #000 !important;
  }
  .profile-avatar-frame {
    display: none !important;
  }
  .main-content {
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
