
:root {
  --color-bg: #fff;
  --color-text: #2E2E2E;
  --accent: #3399FF;
  --umn-maroon: #7a0019;
  --font-body: 'Open Sans', "Roboto", sans-serif, Helvetica, Arial;
}

/* ── Profile photo ring ─────────────────────────────────── */
.profile-photo {
    border: 3px solid var(--umn-maroon);
    box-shadow: 0 0 0 3px #ffcc3355;
    transition: box-shadow 0.2s ease;
}
.profile-photo:hover {
    box-shadow: 0 0 0 5px #ffcc3388;
}

/* ── Social icons ────────────────────────────────────────── */
.social-icons { margin-top: 6px; }

.social-icon {
    font-size: 1.25rem;
    color: #555;
    transition: color 0.18s ease, transform 0.18s ease;
    text-decoration: none;
}
.social-icon:hover { transform: translateY(-2px); text-decoration: none; }
.social-scholar:hover { color: #4285f4; }
.social-s2:hover      { color: #e05a2b; }
.social-github:hover  { color: #1a1a1a; }
.social-twitter:hover { color: #1da1f2; }

/* ── Affiliation pills ───────────────────────────────────── */
.affil-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
}
.affil-pill {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f0f2f7;
    color: #3a4a7a;
    border: 1px solid #d0d5ec;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.affil-pill:hover {
    background: #dde3f5;
    color: var(--umn-maroon);
    text-decoration: none;
}

/* ── Sidebar list consistency (news + student lists) ────── */
#section_students ul {
    padding-left: 1.4em;
    list-style-type: disc;
    margin: 0;
}
#section_students li {
    margin-bottom: 0.25em;
}

/* ── News list styling ───────────────────────────────────── */
#datalist_news {
    padding-left: 1.4em;
    line-height: 1.65;
}
#datalist_news li {
    margin-bottom: 0.35em;
}
#datalist_news li:first-child {
    font-weight: 500;
}
#datalist_news .news-date {
    font-size: 0.82em;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── Research area labels ────────────────────────────────── */
.research-area {
    font-weight: 600;
    /* padding-left: 6px; */
    /* border-left: 3px solid #ccc; */
    display: inline;
    transition: border-color 0.15s ease;
}
.area-cognition { border-left-color: rgb(138, 203, 136); color: #2a6e2a; }
.area-thinking  { border-left-color: rgb(224, 177, 88);  color: #7a5000; }
.area-alignment { border-left-color: rgb(209, 95, 224);  color: #6a0080; }


body {
	font: 1rem/1.5 var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	padding-top: 60px;
	overflow-y:scroll;
}

/* ── Consistent 0.88em font scale across both columns ────── */
/* Sidebar: news, student list, captions */
.col-md-3 {
    font-size: 0.88em;
}
/* Main column: body prose, research list, publication entries */
.col-md-9 {
    font-size: 0.88em;
}
/* Pin heading sizes to root rem so column scaling doesn't shrink them */
.col-md-9 h5  { font-size: 1.15rem; font-weight: 400; }
.col-md-3 h5  { font-size: 1.05rem; font-weight: 400; }
.col-md-3 h6,
.col-md-9 h6  { font-size: 0.95rem; font-weight: 400; }

.dark {
  --color-bg: #1e1e1e;
  --color-text: #ddd;
  --accent: #66aaff;
}
.jumbotron{text-align:justify;
	padding-top:1em;
	padding-bottom:1em;
	margin:auto}

.jumbotron2{text-align:justify;
	padding-top:0.5em;
	color: rgb(127, 1, 1);
	background-color: #ffcc3371;
	padding-bottom:0.5em;
	padding-left:0.8em;
	padding-right:0.8em;
	margin:auto}



.tag[data-v-tag] {
    display: block;
    float: left;
    line-height: 1.1rem;
    font-weight: 500
}


.tag[data-v-tag] {
    padding: 0 .3rem;
	/* margin-left: .2rem; */
    margin-right: .2rem;
    background-color: gray;
    border-radius: 4px;
    color: whitesmoke;
    height: 1.rem;
    font-size: .6rem;
	opacity: 0.8;

}

.small[data-v-tag] {
    padding: 2;
	height:11px;
	margin-top: 3px;
	margin-bottom: 0;
	margin-left: 0rem;
    margin-right: .1rem;	
    font-size: 2pt;
	opacity: 0.6;
}



#members_wrapper {
	display: flex;
	flex-wrap: wrap;
	max-width: 100%;
	justify-content: space-evenly;
	gap: 4px;
  }

.member_figure {
	margin: 0;
	min-width: 100px;
  }
  
.member_image {
display: block;
margin-left: auto;
margin-right: auto;
width: 80px;
height: 80px;
border-radius: 50%;
}

.member_image_caption {
text-align: center;
font-size: 0.88em;
line-height: 150%;
padding: 2px;
}

.img-with-text {
    text-align: justify;
    width: 80px;
}

.img-with-text img {
    display: block;
    margin: 0 auto;
}



/* Main Level */
ul{
    padding: 0;
    padding-left: 1.4em;
    list-style-type: disc;
	margin: 0;
	margin-top: 0px;
}
/* Second Level */
ul ul{
    list-style-type: circle;
	margin: 0;
	padding-left: 1.2em;
}
/* Third Level */
ul ul ul{
  list-style-type: disc;
  padding-left: 1.2em;
}



.alignleft {
	float: left;
}
.alignright {
	float: right;
}


.image-cropper {
	float: left;
	max-width: 100%;
}

.front-image {
	display: inline;
	float: center;
	max-width: 100%;
	margin-top: 0px;
	margin-left: 5px;  
	margin-right: 5px;  
	margin-bottom: 0px; 
}

.front-page {
	width: 100%;
	display:inline-flex;
	flex-wrap:wrap;
}




a {
	color: rgb(0, 51, 160);
	text-decoration: none;
  
  }
  
h6{
	margin-bottom:0.1em;
}

div.authors a:link,
div.authors a:visited{color:#777777}
div.authors{font-size:100%;color:#777777}
span.author{white-space:nowrap}
div.publication{padding-top:0px;padding-bottom:10px}
div.publication div.img{padding-right:0px;padding-top:5px}
div.publication div.text{text-align:left;vertical-align:top;margin-bottom:-0.1em}
span.venue,span.highlight,div.publication span.tag{padding-right:0px;font-size:100%}

/* Publication title link */
a.pub-title-link {
    color: inherit;
    text-decoration: none;
}
a.pub-title-link:hover {
    color: var(--umn-maroon);
    text-decoration: underline;
}

span.highlight{color: red}

ul#datalist_news li:nth-child(n+6) {
    display:none;
}
ul#datalist_talks li:nth-child(n+5) {
    display:none;
}
ul#datalist_awards li:nth-child(n+5) {
    display:none;
}
ul#datalist_synergetic li:nth-child(n+5) {
    display:none;
}

span#extension {
    cursor: pointer;
    color: gray;
	font-size: 60%;
	font-weight: 400;
}

.member-note {
    font-size: 0.72em;
    color: #888;
    font-weight: 400;
}

.member-note a {
    color: #888;
}

span#publication {
    cursor: pointer;
    color: gray;
	font-size: 60%;
	font-weight: 400;
}



a.name {
	font-size: 18px;
	font-weight: 500;
}


div.bottombar{
	font-size:10px
}


footer {
    margin-top: 20px;
    margin-bottom: 20px;
}
.project-list a {
    font-size: 0.7rem;
    background: #eef0f8;
    padding: 2px 6px;
    margin: 2px 3px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    color: #3a4a7a;
    border: 1px solid #d8dcea;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Shine sweep effect */
.project-list a::after {
    content: none;
}

.project-list a:hover::after {
    content: none;
}

.project-list a:hover {
    background: #dde3f5;
    color: #1a2a5a;
    transform: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Timeline base variables ───────────────────────────────── */

[id^="publication_"].timeline {
    --marker-size: 11px;
    --marker-color: #ccc;
}

/* container */
[id^="publication_"].timeline ul {
    position: relative;
    padding-left: 50px;
    margin-left: 5px;
    list-style: none;
}

/* vertical line — plain grey */
[id^="publication_"].timeline ul::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    border-radius: 2px;
    background: #d3d3d3;
}

/* year label */
[id^="publication_"].timeline[data-year]::before {
    content: attr(data-year);
    position: absolute;
    left: 0;
    top: -10px;
    font-weight: 700;
    font-size: 14px;
}

/* each item — fade-in animation */
[id^="publication_"].timeline li {
    position: relative;
    margin-bottom: 8px;
    list-style: none;
    animation: pubSlideIn 0.3s ease both;
}

@keyframes pubSlideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

[id^="publication_"].timeline li:nth-child(1)  { animation-delay: .04s }
[id^="publication_"].timeline li:nth-child(2)  { animation-delay: .08s }
[id^="publication_"].timeline li:nth-child(3)  { animation-delay: .12s }
[id^="publication_"].timeline li:nth-child(4)  { animation-delay: .16s }
[id^="publication_"].timeline li:nth-child(5)  { animation-delay: .20s }
[id^="publication_"].timeline li:nth-child(n+6){ animation-delay: .22s }

/* dot marker */
[id^="publication_"].timeline li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 8px;
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50%;
    background: var(--marker-color);
    box-shadow: 0 0 0 2px #fff, 0 0 5px var(--marker-color);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.12s ease;
    z-index: 1;
}

/* annotation — venue label to the left */
[id^="publication_"] li::after {
    content: attr(data-venue);
    position: absolute;
    right: calc(100% + 44px);
    top: 5px;
    width: 120px;
    font-size: 11px;
    color: #888;
    text-align: right;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
    transition: color 0.15s ease;
}

/* publication content box — card hover */
[id^="publication_"].timeline li div.publication {
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    padding-left: 6px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

[id^="publication_"].timeline li:hover div.publication {
    border-left-color: var(--marker-color);
    background: rgba(0,0,0,0.025);
    transform: translateX(2px);
}

/* dim siblings, highlight hovered */
[id^="publication_"].timeline ul:hover li { opacity: 0.55; }
[id^="publication_"].timeline ul:hover li:hover { opacity: 1; }

[id^="publication_"].timeline ul:hover li::after { color: #bbb; }
[id^="publication_"].timeline ul:hover li:hover::after { color: #555; }

[id^="publication_"].timeline ul li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 0 3px #fff, 0 0 10px var(--marker-color);
}

/* ── Dot colors per topic ──────────────────────────────────── */
[id^="publication_"] li.Interaction { --marker-color: rgb(224, 177, 88);  }
[id^="publication_"] li.Writing     { --marker-color: rgb(219, 64, 90);   }
[id^="publication_"] li.Perception  { --marker-color: rgb(138, 203, 136); }
[id^="publication_"] li.Alignment   { --marker-color: rgb(209, 95, 224);  }
[id^="publication_"] li.Others      { --marker-color: #aaa; }

.Interaction[data-v-tag] { background-color: rgb(224, 177, 88); }
.Writing[data-v-tag]     { background-color: rgb(219, 64, 90); }
.Perception[data-v-tag]  { background-color: rgb(138, 203, 136); }
.Alignment[data-v-tag]   { background-color: rgb(209, 95, 224); }
.Others[data-v-tag]      { background-color: gray; }

#paper_preview_tooltip {
    position: fixed;
    max-width: 900px;
    max-height: 400px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-size: 14px;
    display: none;
    overflow-y: auto;
    pointer-events: auto;  /* important: allow click */

    z-index: 1000;                 /* tooltip stays under overlay */
}


#paper_preview_tooltip .preview_title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

#paper_preview_tooltip .preview_authors {
  color: #555;
  margin-bottom: 8px;
  font-size: 13px;
}

#paper_preview_tooltip .preview_abstract {
  color: #333;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
  white-space: pre-wrap;
}


/* 3/9 layout with equal height columns */
#paper_preview_tooltip .preview_row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-height: 400px;      /* common height */
}

/* left: image column (≈ col-3) */
#paper_preview_tooltip .preview_col_img {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;       /* hide if image is taller but we contain it anyway */
}

/* right: text column (≈ col-9) */
#paper_preview_tooltip .preview_col_text {
  flex: 0 0 60%;
  max-width: 60%;
  overflow: auto;
}

/* image: show whole thing, do not crop */
#paper_preview_tooltip .preview_img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;    /* preserve aspect ratio, no truncation */
  cursor: zoom-in;
}

/* overlay for enlarged image */
#preview_img_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  /* KEY FIX: keep above tooltip */
  z-index: 999999 !important;
}

#preview_img_overlay.show {
  display: flex;
}

#preview_img_large {
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  cursor: zoom-out;
  box-shadow: 0 0 20px rgba(0 0 0 / 0.5);
}


.preview_row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
}

/* normal state */
.preview_col_img img {
  display: block;
  max-width: 180px;
}

/* when image fails, switch to single column */
.no-preview-img .preview_row {
  grid-template-columns: minmax(0, 1fr);
}

.no-preview-img .preview_col_img {
  display: none;
}


/* Project Gallery link at top of Publications */
#section_pub .project_gallery_link {
    background: linear-gradient(90deg, #ffdfdf, #ffd6ff, #d6e4ff);
    padding: 4px 4px;
    margin: 0 0 0px 0;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
    animation: gradientShift 5s ease infinite;
    position: relative;
    overflow: hidden;
    color: #222;
}

/* Shine sweep effect */
#section_pub .project_gallery_link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(-25deg);
    transition: 0.4s;
}

#section_pub .project_gallery_link:hover::after {
    left: 100%;
}

#section_pub .project_gallery_link:hover {
    transform: scale(1.05);
}

/* If your site already defines this keyframes elsewhere, you can omit it */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


[id^="publication_"] li {
    transition: opacity 0.15s ease;
}

[id^="publication_"] li.pub_dim {
    opacity: 0.35;
}

[id^="publication_"] li.pub_focus {
    opacity: 1;
}