
:root {
  --accent: #285f8f;
  --accent-dark: #173f63;
  --text: #202932;
  --muted: #667788;
  --line: #dce4eb;

  --sidebar-bg-1: #f7f9fc;
  --sidebar-bg-2: #eef4f8;
  --sidebar-hover: #ffffff;

  --page-bg: #ffffff;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  padding: 0;

  color: var(--text);
  background: var(--page-bg);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}


/* =========================================================
   Main page structure
   ========================================================= */

#tlayout {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;

  border: none;
  border-collapse: separate;
  border-spacing: 0;

  background: #ffffff;
}


/* =========================================================
   Academic sidebar
   ========================================================= */

#layout-menu {
  width: 220px;
  min-width: 220px;

  padding: 38px 24px 50px;

  vertical-align: top;

  background:
    linear-gradient(
      180deg,
      var(--sidebar-bg-1) 0%,
      var(--sidebar-bg-2) 100%
    );

  border-right: 1px solid var(--line);

  box-shadow:
    8px 0 25px rgba(30, 55, 80, 0.035);
}


/* Section titles in sidebar */
.menu-category {
  margin: 28px 10px 10px;

  color: #8795a3;

  font-size: 0.72rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}


/* Name / first category */
.menu-category:first-child {
  margin: 0 8px 22px;
  padding-bottom: 18px;

  color: #172b3d;

  font-size: 1.32rem;
  font-weight: 750;

  text-transform: none;
  letter-spacing: -0.025em;

  border-bottom: 1px solid #dce4eb;
}


/* Individual navigation row */
.menu-item {
  margin: 5px 0;
}


/* Navigation links */
.menu-item a {
  display: flex;
  align-items: center;

  padding: 9px 12px;

  color: #536474;

  font-size: 0.95rem;
  font-weight: 500;

  border-radius: 9px;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}


/* Small dot before every menu entry */
.menu-item a::before {
  content: "";

  width: 6px;
  height: 6px;

  margin-right: 11px;

  flex: 0 0 6px;

  border-radius: 50%;

  background: #bdc9d3;

  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}


/* Hover */
.menu-item a:hover {
  color: var(--accent-dark);

  text-decoration: none;

  background: rgba(255, 255, 255, 0.82);

  transform: translateX(3px);

  box-shadow:
    0 3px 12px rgba(25, 60, 90, 0.055);
}


.menu-item a:hover::before {
  background: var(--accent);
}


/* Current page */
.menu-item a.current {
  color: var(--accent-dark);

  font-weight: 700;

  background: #ffffff;

  box-shadow:
    0 4px 15px rgba(25, 60, 90, 0.08);
}


.menu-item a.current::before {
  background: var(--accent);

  box-shadow:
    0 0 0 4px rgba(40, 95, 143, 0.10);
}


/* =========================================================
   Mobile navigation
   ========================================================= */

@media (max-width: 760px) {

  #tlayout,
  #tlayout tbody,
  #tlayout tr,
  #tlayout td {
    display: block;
    width: auto;
  }

  #layout-menu {
    width: auto;
    min-width: 0;

    padding: 20px 20px 22px;

    border-right: none;
    border-bottom: 1px solid var(--line);

    box-shadow: none;
  }

  .menu-category:first-child {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .menu-category {
    margin-top: 18px;
  }

  .menu-item {
    display: inline-block;
    margin-right: 4px;
  }

  .menu-item a {
    padding: 7px 10px;
  }

  .menu-item a::before {
    display: none;
  }

  .menu-item a:hover {
    transform: none;
  }
}

/* Limit the total width on large screens */
#tlayout {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  background: #ffffff;
}

/* Main content area */
#layout-content {
  padding: 46px 56px 72px;
}

/* Page title */
#toptitle {
  margin-bottom: 26px;
  padding-bottom: 8px;
  border-bottom: none;
}

#toptitle h1 {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #162433;
}

/* =========================================================
   Profile / hero card
   ========================================================= */

table.imgtable {
  float: none;
  width: 100%;
  margin: 0 0 38px 0;

  border-collapse: separate;
  border-spacing: 0;

  background: #f8fafc;
  border: 1px solid #e1e7ed;
  border-radius: 14px;

  box-shadow: 0 4px 16px rgba(20, 40, 70, 0.06);
  overflow: hidden;
}

/* Photo column */
table.imgtable td:first-child {
  width: 200px;
  padding: 24px 0 24px 24px;
  vertical-align: middle;
}

/* Information column */
table.imgtable td:last-child {
  padding: 24px 30px;
  vertical-align: middle;
}

/* Profile photo */
table.imgtable img {
  display: block;
  width: 180px;
  max-width: 180px;
  height: auto;

  border: none;
  border-radius: 12px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
}

/* Space between profile paragraphs */
table.imgtable p {
  margin: 0 0 11px 0;
}

/* Links inside profile card */
table.imgtable a {
  display: inline-block;

  margin: 5px 6px 0 0;
  padding: 5px 10px;

  border: 1px solid #d4e0ea;
  border-radius: 6px;

  background: #ffffff;
  font-size: 0.93rem;
  font-weight: 500;
}

table.imgtable a:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: #f1f6fa;
}

/* =========================================================
   Section headings
   ========================================================= */

h2 {
  clear: both;

  margin: 40px 0 18px;
  padding-bottom: 9px;

  font-size: 1.38rem;
  font-weight: 700;

  color: #17283a;
  border-bottom: 1px solid #dfe6ec;
}

h2::after {
  content: "";
  display: block;

  width: 48px;
  height: 3px;

  margin-top: 9px;
  margin-bottom: -11px;

  background: var(--accent);
  border-radius: 2px;
}

/* Paragraph readability */
#layout-content p {
  max-width: 900px;
  line-height: 1.78;
}

/* Cleaner lists */
#layout-content li {
  margin: 8px 0;
  line-height: 1.65;
}

#layout-content li::marker {
  color: var(--accent);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {

  #layout-content {
    padding: 26px 20px 48px;
  }

  #toptitle h1 {
    font-size: 1.85rem;
  }

  table.imgtable,
  table.imgtable tbody,
  table.imgtable tr,
  table.imgtable td {
    display: block;
    width: auto;
  }

  table.imgtable td:first-child {
    padding: 22px 22px 8px;
  }

  table.imgtable td:last-child {
    padding: 14px 22px 24px;
  }

  table.imgtable img {
    width: 150px;
    max-width: 150px;
  }

  h2 {
    margin-top: 34px;
  }
}

@media (min-width: 761px) {

  body {
    background: #f4f6f8;
    padding: 24px 0;
  }

  #tlayout {
    min-height: calc(100vh - 48px);

    border: 1px solid #e3e8ed;
    border-radius: 16px;

    overflow: visible;

    box-shadow:
      0 8px 30px rgba(25, 45, 70, 0.055);
  }
}

/* Hide jemdoc generated footer */
#footer {
  display: none !important;
}

/* =========================================================
   Sticky sidebar
   ========================================================= */

@media (min-width: 761px) {

  .menu-sticky {
    position: sticky;
    top: 24px;

    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

}

.menu-sticky {
  scrollbar-width: thin;
  scrollbar-color: #c8d4df transparent;
}

.menu-sticky::-webkit-scrollbar {
  width: 5px;
}

.menu-sticky::-webkit-scrollbar-track {
  background: transparent;
}

.menu-sticky::-webkit-scrollbar-thumb {
  background: #c8d4df;
  border-radius: 10px;
}


